clear scala-home during cross-building

This commit is contained in:
Mark Harrah 2011-05-02 19:35:42 -04:00
parent b2c9e87906
commit ef20db1aa9
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ object Cross
lazy val switchVersion = Command.arb(requireSession(switchParser)) { case (state, (version, command)) =>
val x = Project.extract(state)
import x._
val add = (scalaVersion := version) :: Nil
val add = (scalaVersion :== version) :: (scalaHome :== None) :: Nil
val append = Load.transformSettings(Load.projectScope(currentRef), currentRef.build, rootProject, add)
val newStructure = Load.reapply(session.original ++ append, structure)
Project.setProject(session, newStructure, command :: state)

View File

@ -302,7 +302,7 @@ class XSbt(info: ProjectInfo) extends ParentProject(info) with NoCrossPaths
// sub projects for each version of Scala to precompile against other than the one sbt is built against
// each sub project here will add ~100k to the download
lazy val precompiled29 = precompiledSub("2.9.0.RC1")
lazy val precompiled29 = precompiledSub("2.9.0.RC2")
lazy val precompiled28 = precompiledSub("2.8.0")
lazy val precompiled27 = precompiledSub("2.7.7")