[IC] Flush incremental caches on close

#KT-53168 Fixed
This commit is contained in:
Alexander Likhachev
2022-07-13 19:00:33 +02:00
committed by Space
parent 0950205a47
commit 5cae57cf28
@@ -192,7 +192,7 @@ abstract class IncrementalCompilerRunner<
"Incremental compilation analysis failed: ${e.stackTraceToString()}.\nFalling back to non-incremental compilation."
}
} finally {
if (!caches.close()) {
if (!caches.close(flush = true)) {
reporter.report { "Unable to close IC caches. Cleaning internal state" }
cleanOutputsAndLocalStateOnRebuild(args)
}