summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/GenericRunnerSettings.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/scala/tools/nsc/GenericRunnerSettings.scala')
-rw-r--r--src/compiler/scala/tools/nsc/GenericRunnerSettings.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/GenericRunnerSettings.scala b/src/compiler/scala/tools/nsc/GenericRunnerSettings.scala
index e097061b65..65b6745edd 100644
--- a/src/compiler/scala/tools/nsc/GenericRunnerSettings.scala
+++ b/src/compiler/scala/tools/nsc/GenericRunnerSettings.scala
@@ -22,6 +22,11 @@ extends Settings(error) {
"-savecompiled",
"save the compiled script (assumes the code is a script)")
+ val nocompdaemon =
+ BooleanSetting(
+ "-nocompdaemon",
+ "do not use the fsc compilation daemon")
+
/* For some reason, "object defines extends Setting(...)"
does not work here. The object is present but the setting
is not added to allsettings. Thus,
@@ -59,6 +64,12 @@ extends Settings(error) {
for(val Pair(key, value) <- props.toList)
systemProps.setProperty(key, value)
}
+
+ def unparse: List[String] =
+ (props.toList.foldLeft[List[String]]
+ (Nil)
+ ((args, prop) =>
+ ("-D" + prop._1 + "=" + prop._2) :: args))
}
val defines = new DefinesSetting