Unify processing of removed files for JS and JVM IC

This commit is contained in:
Alexey Tsvetkov
2017-12-07 03:11:10 +03:00
parent d0ca0dca2b
commit e8162cd99d
9 changed files with 222 additions and 128 deletions
@@ -19,7 +19,7 @@ package org.jetbrains.kotlin.incremental
import org.jetbrains.kotlin.incremental.storage.BasicMapsOwner
import java.io.File
abstract class IncrementalCachesManager<PlatformCache : IncrementalCacheCommon>(
abstract class IncrementalCachesManager<PlatformCache : IncrementalCacheCommon<*>>(
protected val cachesRootDir: File,
protected val reporter: ICReporter
) {
@@ -121,7 +121,8 @@ class IncrementalJsCompilerRunner(
val jsCache = caches.platformCache
jsCache.header = incrementalResults.headerMetadata
return jsCache.compareAndUpdate(incrementalResults, changesCollector)
jsCache.compareAndUpdate(incrementalResults, changesCollector)
jsCache.clearCacheForRemovedClasses(changesCollector)
}
override fun runCompiler(