diff options
author | Paul Phillips <paulp@improving.org> | 2010-01-20 05:51:12 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-01-20 05:51:12 +0000 |
commit | 2d487cd460dd5b5064383ebf968d6fb47c7c696d (patch) | |
tree | a06fa506cc9d77083af0b2d564689efe3be4e59b /src/compiler/scala/tools/nsc/Global.scala | |
parent | a3d41894e7efd4be5c9e9ce50dec8f116c3c0fc3 (diff) | |
download | scala-2d487cd460dd5b5064383ebf968d6fb47c7c696d.tar.gz scala-2d487cd460dd5b5064383ebf968d6fb47c7c696d.tar.bz2 scala-2d487cd460dd5b5064383ebf968d6fb47c7c696d.zip |
Removed static state from global object ClassPa...
Removed static state from global object ClassPath object, and some minor
repositioning while in there. Closes #2928, but the intentions behind
-optimise being intertwined with ClassPath could really use some source
comments. Review by rytz.
Diffstat (limited to 'src/compiler/scala/tools/nsc/Global.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/Global.scala | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala index 1128150cb8..76fa2ade93 100644 --- a/src/compiler/scala/tools/nsc/Global.scala +++ b/src/compiler/scala/tools/nsc/Global.scala @@ -211,16 +211,13 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable } } - lazy val classPath = { - ClassPath.XO = settings.XO.value + lazy val classPath = if (forMSIL) - new MsilClassPath(settings.assemextdirs.value, settings.assemrefs.value, - settings.sourcepath.value) + new MsilClassPath(settings.assemextdirs.value, settings.assemrefs.value, settings.sourcepath.value, settings.XO.value) else new JavaClassPath(settings.bootclasspath.value, settings.extdirs.value, settings.classpath.value, settings.sourcepath.value, - settings.Xcodebase.value) - } + settings.Xcodebase.value, settings.XO.value) if (settings.verbose.value) { inform("[Classpath = " + classPath + "]") |