mirror of https://github.com/sbt/sbt.git
Merge pull request #7983 from Friendseeker/lazy-previous-compile
[1.x] Avoid upstream compilation when calling `previousCompile`
This commit is contained in:
commit
fde334bdd6
|
|
@ -2580,9 +2580,10 @@ object Defaults extends BuildCommon {
|
|||
private[sbt] def jnone[A]: Optional[A] = none[A].toOptional
|
||||
def compileAnalysisSettings: Seq[Setting[_]] = Seq(
|
||||
previousCompile := {
|
||||
val setup = compileIncSetup.value
|
||||
// Avoid compileIncSetup since it would trigger upstream compilation
|
||||
val analysisFile = compileAnalysisFile.value
|
||||
val store = AnalysisUtil.staticCachedStore(
|
||||
analysisFile = setup.cacheFile.toPath,
|
||||
analysisFile = analysisFile.toPath,
|
||||
useTextAnalysis = !enableBinaryCompileAnalysis.value,
|
||||
useConsistent = enableConsistentCompileAnalysis.value,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue