From a22ef02e477ce42d9f8eeb9bd5d34cf332ec35d3 Mon Sep 17 00:00:00 2001 From: Svyatoslav Scherbina Date: Wed, 4 Aug 2021 16:20:46 +0300 Subject: [PATCH] Native: disable compiler caches for experimental memory model Experimental MM doesn't support compiler caches yet. --- .../src/org/jetbrains/kotlin/backend/konan/CacheSupport.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/CacheSupport.kt b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/CacheSupport.kt index 3be2d309483..24dcd349d17 100644 --- a/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/CacheSupport.kt +++ b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/CacheSupport.kt @@ -54,6 +54,7 @@ class CacheSupport( val ignoreReason = when { configuration.getBoolean(KonanConfigKeys.OPTIMIZATION) -> "for optimized compilation" + configuration.get(KonanConfigKeys.MEMORY_MODEL) == MemoryModel.EXPERIMENTAL -> "with experimental memory model" configuration.getBoolean(KonanConfigKeys.PROPERTY_LAZY_INITIALIZATION) -> "with experimental lazy top levels initialization" else -> null }