Skip to content

Commit

Permalink
Readonly cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgonmic committed Nov 18, 2024
1 parent c10fb57 commit 87f5f3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
kotlin = "2.1.20-dev-3031"
kotlin = "2.1.20-dev-4348"
kotlinIdeVersion = "1.9.20-506"
kotlinIdeVersionWithSuffix = "231-1.9.20-506-IJ8109.175"
spring-boot = "2.7.10"
Expand Down
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 87f5f3c

Please sign in to comment.