diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-02-14 00:20:37 -0500 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-02-14 00:34:48 -0500 |
commit | e0c12a39e634bc88d0128992eabb16fa3b38b3b4 (patch) | |
tree | e47ee3c2fc505fed2f8b07ed7153a71731bc4bc9 /stage1/Stage1Lib.scala | |
parent | 39a716a4cd54bf9e35ba60b5d40ed0f9a117e55b (diff) | |
download | cbt-e0c12a39e634bc88d0128992eabb16fa3b38b3b4.tar.gz cbt-e0c12a39e634bc88d0128992eabb16fa3b38b3b4.tar.bz2 cbt-e0c12a39e634bc88d0128992eabb16fa3b38b3b4.zip |
now really cache classloaders for builds
should be safe now that we rebuild based on lastModified
Diffstat (limited to 'stage1/Stage1Lib.scala')
-rw-r--r-- | stage1/Stage1Lib.scala | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/stage1/Stage1Lib.scala b/stage1/Stage1Lib.scala index cbf62dc..505b298 100644 --- a/stage1/Stage1Lib.scala +++ b/stage1/Stage1Lib.scala @@ -436,14 +436,10 @@ ${sourceFiles.sorted.mkString(" \\\n")} new MultiClassLoader( dependencies.map( classLoaderRecursion(_, latest) ) ) - if(dependency.isInstanceOf[BuildInterface]) - cl // Don't cache builds right now. We need to fix invalidation first. - else{ - if( !cache.containsKey( cp, lastModified ) ){ - cache.put( cp, cl, lastModified ) - } - cache.get( cp, lastModified ) + if( !cache.containsKey( cp, lastModified ) ){ + cache.put( cp, cl, lastModified ) } + cache.get( cp, lastModified ) } } |