aboutsummaryrefslogtreecommitdiff
path: root/stage2/Stage2.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-11-10 01:40:14 -0500
committerChristopher Vogt <oss.nsp@cvogt.org>2017-02-13 10:10:02 -0500
commit8ebada86b1fc58465751864acba8aafd387ccb4b (patch)
tree3c0cf15a408350511652dd0f0872a8eba6de7a9e /stage2/Stage2.scala
parent0a295c21d3379117e661fdbf586ecb6222c3602b (diff)
downloadcbt-8ebada86b1fc58465751864acba8aafd387ccb4b.tar.gz
cbt-8ebada86b1fc58465751864acba8aafd387ccb4b.tar.bz2
cbt-8ebada86b1fc58465751864acba8aafd387ccb4b.zip
Add support for nested builds and use it to replace cross compilation
command which was previously hard-coded This will allow multi-project builds, too but we should first fix caching across instances and GitDependencies on sub-builds within other repositories.
Diffstat (limited to 'stage2/Stage2.scala')
-rw-r--r--stage2/Stage2.scala14
1 files changed, 2 insertions, 12 deletions
diff --git a/stage2/Stage2.scala b/stage2/Stage2.scala
index 0f5b557..25cd0ae 100644
--- a/stage2/Stage2.scala
+++ b/stage2/Stage2.scala
@@ -12,12 +12,10 @@ object Stage2 extends Stage2Base{
val paths = CbtPaths(args.cbtHome,args.cache)
import paths._
val lib = new Lib(args.logger)
-
logger.stage2(s"Stage2 start")
val loop = args.args.lift(0) == Some("loop")
- val cross = args.args.lift(0) == Some("cross")
- val taskIndex = if (loop || cross) {
+ val taskIndex = if (loop) {
1
} else {
0
@@ -44,15 +42,7 @@ object Stage2 extends Stage2Base{
val build = first.finalBuild
def call(build: BuildInterface): ExitCode = {
- if(cross){
- build.crossScalaVersions.map{
- v => new lib.ReflectBuild(
- build.copy(context.copy(scalaVersion = Some(v)))
- ).callNullary(task)
- }.filter(_ != ExitCode.Success).headOption getOrElse ExitCode.Success
- } else {
- new lib.ReflectBuild(build).callNullary(task)
- }
+ new lib.ReflectBuild(build).callNullary(task)
}
val res =