diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index c3671fc8..86a80903 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -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" diff --git a/src/main/kotlin/com/compiler/server/compiler/components/KotlinToJSTranslator.kt b/src/main/kotlin/com/compiler/server/compiler/components/KotlinToJSTranslator.kt index 4ccc9f58..f4025da2 100644 --- a/src/main/kotlin/com/compiler/server/compiler/components/KotlinToJSTranslator.kt +++ b/src/main/kotlin/com/compiler/server/compiler/components/KotlinToJSTranslator.kt @@ -184,7 +184,7 @@ class KotlinToJSTranslator( icDir, outputDir, debugInfo - ) + ) + "-Xwasm-ic-cache-readonly=true" ) } .map { @@ -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")