Skip to content

Commit

Permalink
Readonly cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgonmic committed Dec 4, 2024
1 parent fdbe7e6 commit 53c8495
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class KotlinToJSTranslator(
icDir,
outputDir,
debugInfo
)
) + "-Xwasm-ic-cache-readonly=true"
)
}
.map {
Expand All @@ -201,13 +201,7 @@ class KotlinToJSTranslator(

val time = measureTime {
a = cacheDir?.let { dir ->
usingTempDirectory { tmpDir ->
val cachesDir = tmpDir.resolve("caches").normalize()
if (dir.exists()) {
dir.copyRecursively(cachesDir.toFile())
}
compileAction(cachesDir)
}
compileAction(dir.toPath())
} ?: compileAction(null)
}
println("TIME: $time")
Expand Down

0 comments on commit 53c8495

Please sign in to comment.