diff options
author | Paul Phillips <paulp@improving.org> | 2010-11-07 23:48:57 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-11-07 23:48:57 +0000 |
commit | 1016d68bef18ea078a83af6e550adf2d8a818ddd (patch) | |
tree | 95aaa82c97f1d90f27ebb306d7c98304504cd4ca /src/compiler/scala/tools/nsc/backend/JavaPlatform.scala | |
parent | 4659d81554c1eb5bda6730d48e0dfed747679862 (diff) | |
download | scala-1016d68bef18ea078a83af6e550adf2d8a818ddd.tar.gz scala-1016d68bef18ea078a83af6e550adf2d8a818ddd.tar.bz2 scala-1016d68bef18ea078a83af6e550adf2d8a818ddd.zip |
An overhaul of Global.
consistently, and remove things which are not being used anywhere
in the visible universe. Beyond general polish here are some of the
feature-like additions I can remember:
* -Xshow-phases now includes descriptions of the phases.
* -Xshow-class and -Xshow-object did not work as far as I could tell:
if they didn't, now they do. If they did, now they work better.
And you don't have to give it a fully qualified name anymore.
* -Xprint-icode will generate *.icode files (don't also have to say -Xprint:icode)
* counts of deprecation and unchcked warnings are given
* More documentation of what global is doing.
I tried not to break anything which might be using Global, but let me
know if I overshot somewhere. No review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/backend/JavaPlatform.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/JavaPlatform.scala | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/JavaPlatform.scala b/src/compiler/scala/tools/nsc/backend/JavaPlatform.scala index c4365a82ac..ec367b61bb 100644 --- a/src/compiler/scala/tools/nsc/backend/JavaPlatform.scala +++ b/src/compiler/scala/tools/nsc/backend/JavaPlatform.scala @@ -18,7 +18,10 @@ trait JavaPlatform extends Platform[AbstractFile] { lazy val classPath = new PathResolver(settings).result def rootLoader = new loaders.JavaPackageLoader(classPath) - private def depAnalysisPhase = if (settings.make.value != "all") List(dependencyAnalysis) else Nil + private def depAnalysisPhase = + if (settings.make.isDefault) Nil + else List(dependencyAnalysis) + def platformPhases = List( flatten, // get rid of inner classes liftcode, // generate reified trees |