Skip to content

Commit

Permalink
[K/N] Do not check caches consistency until all of them are built
Browse files Browse the repository at this point in the history
 #KT-60371 Fixed
  • Loading branch information
homuroll authored and qodana-bot committed Aug 11, 2023
1 parent 0f6d84c commit b1aa582
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class PartialCacheInfo(val klib: KotlinLibrary, val strategy: CacheDeserializati

class CacheSupport(
private val configuration: CompilerConfiguration,
resolvedLibraries: KotlinLibraryResolveResult,
private val resolvedLibraries: KotlinLibraryResolveResult,
ignoreCacheReason: String?,
systemCacheDirectory: File,
autoCacheDirectory: File,
Expand Down Expand Up @@ -181,7 +181,7 @@ class CacheSupport(
fun cacheFileId(fqName: String, filePath: String) = "${if (fqName == "") "ROOT" else fqName}.${filePath.hashCode().toString(Character.MAX_RADIX)}"
}

init {
fun checkConsistency() {
// Ensure dependencies of every cached library are cached too:
resolvedLibraries.getFullList { libraries ->
libraries.map { library ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ class KonanDriver(
konanConfig = KonanConfig(project, configuration) // TODO: Just set freshly built caches.
}

konanConfig.cacheSupport.checkConsistency()

DynamicCompilerDriver().run(konanConfig, environment)
}

Expand Down

0 comments on commit b1aa582

Please sign in to comment.