diff options
author | Josh Suereth <joshua.suereth@gmail.com> | 2012-06-12 10:42:24 -0400 |
---|---|---|
committer | Josh Suereth <joshua.suereth@gmail.com> | 2012-06-12 10:42:24 -0400 |
commit | ed1b1b1d4544d4c2dba088e923c362151dd9eed2 (patch) | |
tree | fca317e4b6a587eac9c87e2a4e40eaaf47cd4c9c /project/Build.scala | |
parent | 87e23f5f523fc1c5b6ece12f6a812f26820e4da7 (diff) | |
download | scala-ed1b1b1d4544d4c2dba088e923c362151dd9eed2.tar.gz scala-ed1b1b1d4544d4c2dba088e923c362151dd9eed2.tar.bz2 scala-ed1b1b1d4544d4c2dba088e923c362151dd9eed2.zip |
Fix for reflection. Review/Use by @adriaanm
Diffstat (limited to 'project/Build.scala')
-rw-r--r-- | project/Build.scala | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/project/Build.scala b/project/Build.scala index 610f756a34..e2658e3405 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -177,20 +177,20 @@ object ScalaBuild extends Build with Layers { } // Locker is a lockable Scala compiler that can be built of 'current' source to perform rapid development. - lazy val (lockerLib, lockerComp) = makeLayer("locker", STARR, autoLock = true) - lazy val locker = Project("locker", file(".")) aggregate(lockerLib, lockerComp) + lazy val (lockerLib, lockerReflect, lockerComp) = makeLayer("locker", STARR, autoLock = true) + lazy val locker = Project("locker", file(".")) aggregate(lockerLib, lockerReflect, lockerComp) // Quick is the general purpose project layer for the Scala compiler. - lazy val (quickLib, quickComp) = makeLayer("quick", makeScalaReference("locker", lockerLib, lockerComp)) - lazy val quick = Project("quick", file(".")) aggregate(quickLib, quickComp) + lazy val (quickLib, quickReflect, quickComp) = makeLayer("quick", makeScalaReference("locker", lockerLib, lockerReflect, lockerComp)) + lazy val quick = Project("quick", file(".")) aggregate(quickLib, quickReflect, quickComp) // Reference to quick scala instance. - lazy val quickScalaInstance = makeScalaReference("quick", quickLib, quickComp) + lazy val quickScalaInstance = makeScalaReference("quick", quickLib, quickReflect, quickComp) def quickScalaLibraryDependency = unmanagedClasspath in Compile <++= (exportedProducts in quickLib in Compile).identity def quickScalaCompilerDependency = unmanagedClasspath in Compile <++= (exportedProducts in quickComp in Compile).identity // Strapp is used to test binary 'sameness' between things built with locker and things built with quick. - lazy val (strappLib, strappComp) = makeLayer("strapp", quickScalaInstance) + lazy val (strappLib, strappReflect, strappComp) = makeLayer("strapp", quickScalaInstance) // -------------------------------------------------------------- // Projects dependent on layered compilation (quick) @@ -282,6 +282,8 @@ object ScalaBuild extends Build with Layers { ) lazy val scalaLibrary = Project("scala-library", file(".")) settings(publishSettings:_*) settings(scalaLibArtifactSettings:_*) + // TODO - Real Reflect instance + // -------------------------------------------------------------- // Real Compiler Artifact // -------------------------------------------------------------- @@ -297,7 +299,7 @@ object ScalaBuild extends Build with Layers { target <<= (baseDirectory, name) apply (_ / "target" / _) ) lazy val scalaCompiler = Project("scala-compiler", file(".")) settings(publishSettings:_*) settings(scalaBinArtifactSettings:_*) dependsOn(scalaLibrary) - lazy val fullQuickScalaReference = makeScalaReference("pack", scalaLibrary, scalaCompiler) + lazy val fullQuickScalaReference = makeScalaReference("pack", scalaLibrary, quickReflect, scalaCompiler) // -------------------------------------------------------------- // Testing @@ -341,7 +343,7 @@ object ScalaBuild extends Build with Layers { // TODO - Migrate this into the dist project. // Scaladocs - def distScalaInstance = makeScalaReference("dist", scalaLibrary, scalaCompiler) + def distScalaInstance = makeScalaReference("dist", scalaLibrary, quickReflect, scalaCompiler) lazy val documentationSettings: Seq[Setting[_]] = dependentProjectSettings ++ Seq( // TODO - Make these work for realz. defaultExcludes in unmanagedSources in Compile := ((".*" - ".") || HiddenFileFilter || |