summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compiler/scala/tools/nsc/Global.scala5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala
index b6ccbf4ad2..65b358610c 100644
--- a/src/compiler/scala/tools/nsc/Global.scala
+++ b/src/compiler/scala/tools/nsc/Global.scala
@@ -47,6 +47,9 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable
//def this() = this(new Settings, new ConsoleReporter)
+ // helper modules
+ val scriptRunner: ScriptRunner = ScriptRunner
+
// sub-components --------------------------------------------------
object nodePrinters extends NodePrinters {
val global: Global.this.type = Global.this
@@ -599,7 +602,7 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable
error("can only compile one script at a time")
val sources = filenames map (
if (scriptMain != "")
- (x => ScriptRunner.wrappedScript(scriptMain, x, getSourceFile _))
+ (x => scriptRunner.wrappedScript(scriptMain, x, getSourceFile _))
else
getSourceFile)
compileSources(sources)