aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-08-21 11:17:40 +0200
committerMartin Odersky <odersky@gmail.com>2013-08-21 11:17:40 +0200
commit1128d72e9b6ccc766c53b5f4872249aedafc00be (patch)
tree937115b1ee5753b1cfa25860423f5a87ae486551 /src/dotty/tools
parent02394593cf6ed5c092c398cdb1908ea5b0928d6a (diff)
downloaddotty-1128d72e9b6ccc766c53b5f4872249aedafc00be.tar.gz
dotty-1128d72e9b6ccc766c53b5f4872249aedafc00be.tar.bz2
dotty-1128d72e9b6ccc766c53b5f4872249aedafc00be.zip
Making Main friendler as a compile target for dotty
Diffstat (limited to 'src/dotty/tools')
-rw-r--r--src/dotty/tools/dotc/Main.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/Main.scala b/src/dotty/tools/dotc/Main.scala
index 3ba05dfee..fb2733c27 100644
--- a/src/dotty/tools/dotc/Main.scala
+++ b/src/dotty/tools/dotc/Main.scala
@@ -16,8 +16,8 @@ object Main extends Driver {
override def newCompiler(): Compiler = new Compiler
- override def doCompile(compiler: Compiler, fileNames: List[String])(implicit ctx: Context) {
- if (ctx.settings.resident.value) resident(compiler)
+ override def doCompile(compiler: Compiler, fileNames: List[String])(implicit ctx: Context): Unit = {
+ if (new config.Settings.Setting.SettingDecorator(ctx.base.settings.resident).value) resident(compiler)
else super.doCompile(compiler, fileNames)
}
}