summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/GenericRunnerSettings.scala
diff options
context:
space:
mode:
authorLex Spoon <lex@lexspoon.org>2006-07-13 14:24:54 +0000
committerLex Spoon <lex@lexspoon.org>2006-07-13 14:24:54 +0000
commitbe488e78a98d4f2ee7f444a9e2f68057bd079064 (patch)
treecf4f24e1e312f4da575f5c3b26e47e08b55257cc /src/compiler/scala/tools/nsc/GenericRunnerSettings.scala
parent5e3e15d1ddb012af2dec7df468c7c63a497f5cec (diff)
downloadscala-be488e78a98d4f2ee7f444a9e2f68057bd079064.tar.gz
scala-be488e78a98d4f2ee7f444a9e2f68057bd079064.tar.bz2
scala-be488e78a98d4f2ee7f444a9e2f68057bd079064.zip
- added -nocompdaemon
- added an unparse method
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