From 57de43907e05d4cd3986e2994e0e3bff93e09b4e Mon Sep 17 00:00:00 2001 From: Christopher Vogt Date: Wed, 30 Mar 2016 23:39:14 -0400 Subject: Makes zinc usage smarter, so we do not need to call it when no files changed (and safe up to 0.1s for each call) There still seem to be 2 bugs related to CBT development in the code. One if you simpy save a stage1 file unchanged and re-run cbt, it fails to call Stage2.run reflectively. Also in case of compile errors in stage1, a TrappedExitCode exception is thrown and not caught. --- stage2/BuildDependency.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stage2/BuildDependency.scala') diff --git a/stage2/BuildDependency.scala b/stage2/BuildDependency.scala index 84a0100..e3a01c7 100644 --- a/stage2/BuildDependency.scala +++ b/stage2/BuildDependency.scala @@ -25,7 +25,7 @@ case class BuildDependency(context: Context) extends TriggerLoop{ def exportedJars = Seq() def dependencies = Seq(build) def triggerLoopFiles = root.triggerLoopFiles - final val updated = build.updated + override final val needsUpdate = build.needsUpdate def targetClasspath = ClassPath(Seq()) } /* -- cgit v1.2.3