summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compiler/scala/tools/nsc/Global.scala14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala
index f3563b5dad..56fe04055c 100644
--- a/src/compiler/scala/tools/nsc/Global.scala
+++ b/src/compiler/scala/tools/nsc/Global.scala
@@ -1149,10 +1149,18 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable
}
})
}
-
+ // In order to not outright break code which overrides onlyPresentation (like sbt 0.7.5.RC0)
+ // I restored and deprecated it. That would be enough to avoid the compilation
+ // failure, but the override wouldn't accomplish anything. So now forInteractive
+ // and forScaladoc default to onlyPresentation, which is the same as defaulting
+ // to false except in old code. The downside is that this leaves us calling a
+ // deprecated method: but I see no simple way out, so I leave it for now.
def forJVM = opt.jvm
def forMSIL = opt.msil
- def forInteractive = false
- def forScaladoc = false
+ def forInteractive = onlyPresentation
+ def forScaladoc = onlyPresentation
def createJavadoc = false
+
+ @deprecated("Use forInteractive or forScaladoc, depending on what you're after")
+ def onlyPresentation = false
}