diff options
author | Lex Spoon <lex@lexspoon.org> | 2006-07-13 14:24:54 +0000 |
---|---|---|
committer | Lex Spoon <lex@lexspoon.org> | 2006-07-13 14:24:54 +0000 |
commit | be488e78a98d4f2ee7f444a9e2f68057bd079064 (patch) | |
tree | cf4f24e1e312f4da575f5c3b26e47e08b55257cc /src/compiler/scala/tools | |
parent | 5e3e15d1ddb012af2dec7df468c7c63a497f5cec (diff) | |
download | scala-be488e78a98d4f2ee7f444a9e2f68057bd079064.tar.gz scala-be488e78a98d4f2ee7f444a9e2f68057bd079064.tar.bz2 scala-be488e78a98d4f2ee7f444a9e2f68057bd079064.zip |
- added -nocompdaemon
- added an unparse method
Diffstat (limited to 'src/compiler/scala/tools')
-rw-r--r-- | src/compiler/scala/tools/nsc/GenericRunnerSettings.scala | 11 |
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 |