IC: Adopt IC compilation for case then runCompiler adds some dirty files
as it is the case for Fir IC compilation.
This commit is contained in:
+4
-4
@@ -350,10 +350,6 @@ abstract class IncrementalCompilerRunner<
|
|||||||
//TODO(valtman) sourceToCompile calculate based on abiSnapshot
|
//TODO(valtman) sourceToCompile calculate based on abiSnapshot
|
||||||
val (sourcesToCompile, removedKotlinSources) = dirtySources.partition(File::exists)
|
val (sourcesToCompile, removedKotlinSources) = dirtySources.partition(File::exists)
|
||||||
|
|
||||||
allDirtySources.addAll(dirtySources)
|
|
||||||
val text = allDirtySources.joinToString(separator = System.getProperty("line.separator")) { it.canonicalPath }
|
|
||||||
dirtySourcesSinceLastTimeFile.writeText(text)
|
|
||||||
|
|
||||||
val services = makeServices(
|
val services = makeServices(
|
||||||
args, lookupTracker, expectActualTracker, caches,
|
args, lookupTracker, expectActualTracker, caches,
|
||||||
dirtySources.toSet(), compilationMode is CompilationMode.Incremental
|
dirtySources.toSet(), compilationMode is CompilationMode.Incremental
|
||||||
@@ -375,6 +371,10 @@ abstract class IncrementalCompilerRunner<
|
|||||||
}
|
}
|
||||||
|
|
||||||
dirtySources.addAll(compiledSources)
|
dirtySources.addAll(compiledSources)
|
||||||
|
allDirtySources.addAll(dirtySources)
|
||||||
|
val text = allDirtySources.joinToString(separator = System.getProperty("line.separator")) { it.canonicalPath }
|
||||||
|
dirtySourcesSinceLastTimeFile.writeText(text)
|
||||||
|
|
||||||
|
|
||||||
val generatedFiles = outputItemsCollector.outputs.map(SimpleOutputItem::toGeneratedFile)
|
val generatedFiles = outputItemsCollector.outputs.map(SimpleOutputItem::toGeneratedFile)
|
||||||
if (compilationMode is CompilationMode.Incremental) {
|
if (compilationMode is CompilationMode.Incremental) {
|
||||||
|
|||||||
Reference in New Issue
Block a user