summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/settings/ScalaSettings.scala
diff options
context:
space:
mode:
authorMiguel Garcia <miguelalfredo.garcia@epfl.ch>2013-06-27 21:30:36 +0200
committerMiguel Garcia <miguelalfredo.garcia@epfl.ch>2013-06-27 21:30:36 +0200
commitbe436ba8ab6c50795d7a9d6ea525b6e32faf532d (patch)
treea561165c0cfce382c651adbbb6e2a93ed61176da /src/compiler/scala/tools/nsc/settings/ScalaSettings.scala
parent8281ab5c2950aa8ea0017fc4b0c40a7eafda2931 (diff)
downloadscala-be436ba8ab6c50795d7a9d6ea525b6e32faf532d.tar.gz
scala-be436ba8ab6c50795d7a9d6ea525b6e32faf532d.tar.bz2
scala-be436ba8ab6c50795d7a9d6ea525b6e32faf532d.zip
more informative name for backend-selection via command-line
Diffstat (limited to 'src/compiler/scala/tools/nsc/settings/ScalaSettings.scala')
-rw-r--r--src/compiler/scala/tools/nsc/settings/ScalaSettings.scala10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/compiler/scala/tools/nsc/settings/ScalaSettings.scala b/src/compiler/scala/tools/nsc/settings/ScalaSettings.scala
index ae105ac1a1..321baba562 100644
--- a/src/compiler/scala/tools/nsc/settings/ScalaSettings.scala
+++ b/src/compiler/scala/tools/nsc/settings/ScalaSettings.scala
@@ -201,9 +201,9 @@ trait ScalaSettings extends AbsScalaSettings
/**
* Settings motivated by GenBCode
*/
- val neo = ChoiceSetting ("-neo", "choice of bytecode emitter", "Choice of bytecode emitter.",
- List("GenASM", "GenBCode"),
- "GenASM")
+ val Ybackend = ChoiceSetting ("-Ybackend", "choice of bytecode emitter", "Choice of bytecode emitter.",
+ List("GenASM", "GenBCode"),
+ "GenASM")
// Feature extensions
val XmacroSettings = MultiStringSetting("-Xmacro-settings", "option", "Custom settings for macros.")
@@ -231,7 +231,7 @@ trait ScalaSettings extends AbsScalaSettings
* Helper utilities for use by checkConflictingSettings()
*/
def isBCodeActive = !isICodeAskedFor
- def isBCodeAskedFor = (neo.value != "GenASM")
- def isICodeAskedFor = { (neo.value == "GenASM") || optimiseSettings.exists(_.value) || writeICode.isSetByUser }
+ def isBCodeAskedFor = (Ybackend.value != "GenASM")
+ def isICodeAskedFor = ((Ybackend.value == "GenASM") || optimiseSettings.exists(_.value) || writeICode.isSetByUser)
}