aboutsummaryrefslogtreecommitdiff
path: root/stage2/plugins
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-03-12 13:22:01 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2017-03-12 13:22:01 -0400
commit2c139c896ae4561bb584aa00e3ec1c88e0c8395b (patch)
tree11cb9d66ced7cf806951e88b0cd48ee1f516d5c0 /stage2/plugins
parent12f26b9187eaebb42400bef5cf85f7355b19bb61 (diff)
downloadcbt-2c139c896ae4561bb584aa00e3ec1c88e0c8395b.tar.gz
cbt-2c139c896ae4561bb584aa00e3ec1c88e0c8395b.tar.bz2
cbt-2c139c896ae4561bb584aa00e3ec1c88e0c8395b.zip
fix change propagation
Diffstat (limited to 'stage2/plugins')
-rw-r--r--stage2/plugins/Dotty.scala6
-rw-r--r--stage2/plugins/Frege.scala6
2 files changed, 10 insertions, 2 deletions
diff --git a/stage2/plugins/Dotty.scala b/stage2/plugins/Dotty.scala
index 01ffa27..0bbaf44 100644
--- a/stage2/plugins/Dotty.scala
+++ b/stage2/plugins/Dotty.scala
@@ -130,12 +130,16 @@ class DottyLib(
val classpath = d.classpath
val cp = classpath.string
+ def lastModified = (
+ cbtLastModified +: d.lastModified +: sourceFiles.map(_.lastModified)
+ ).max
+
if( sourceFiles.isEmpty ){
None
}else{
val start = System.currentTimeMillis
val lastCompiled = statusFile.lastModified
- if( d.lastModified > lastCompiled || sourceFiles.exists(_.lastModified > lastCompiled) ){
+ if( lastModified > lastCompiled ){
val _class = "dotty.tools.dotc.Main"
val dualArgs =
diff --git a/stage2/plugins/Frege.scala b/stage2/plugins/Frege.scala
index 3fcd56b..da5e54f 100644
--- a/stage2/plugins/Frege.scala
+++ b/stage2/plugins/Frege.scala
@@ -66,12 +66,16 @@ class FregeLib(
val classpath = d.classpath
val cp = classpath.string
+ def lastModified = (
+ cbtLastModified +: d.lastModified +: sourceFiles.map(_.lastModified)
+ ).max
+
if( sourceFiles.isEmpty ){
None
} else {
val start = System.currentTimeMillis
val lastCompiled = statusFile.lastModified
- if( d.lastModified > lastCompiled || sourceFiles.exists(_.lastModified > lastCompiled) ){
+ if( lastModified > lastCompiled ){
val _class = "frege.compiler.Main"
val fp = (fregeDependency.classpath.strings ++ fregeDependencies.map(_.classpath.string))