mirror of https://github.com/sbt/sbt.git
clear scala-home during cross-building
This commit is contained in:
parent
b2c9e87906
commit
ef20db1aa9
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue