From 6996e03bc963ad7a4f17f2510ed04e6abfd3e8fe Mon Sep 17 00:00:00 2001 From: Alexander Shabalin Date: Tue, 28 Feb 2023 14:21:28 +0100 Subject: [PATCH] [K/N] Build new MM only for targets with threads Targets without threads are disabled already. --- kotlin-native/runtime/build.gradle.kts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/kotlin-native/runtime/build.gradle.kts b/kotlin-native/runtime/build.gradle.kts index 6f136dcb203..813a275b9a1 100644 --- a/kotlin-native/runtime/build.gradle.kts +++ b/kotlin-native/runtime/build.gradle.kts @@ -166,7 +166,6 @@ bitcode { compilerArgs.add("-DCUSTOM_ALLOCATOR") - // Directly depends on cms which is only supported with threads. onlyIf { target.supportsThreads() } } @@ -260,6 +259,8 @@ bitcode { testFixtures {} test {} } + + onlyIf { target.supportsThreads() } } module("experimental_memory_manager_custom") { @@ -270,8 +271,10 @@ bitcode { testFixtures {} test {} } - + compilerArgs.add("-DCUSTOM_ALLOCATOR") + + onlyIf { target.supportsThreads() } } module("common_gc") { @@ -281,6 +284,8 @@ bitcode { main {} test {} } + + onlyIf { target.supportsThreads() } } module("noop_gc") { @@ -290,6 +295,8 @@ bitcode { main {} testFixtures {} } + + onlyIf { target.supportsThreads() } } module("same_thread_ms_gc") { @@ -300,6 +307,8 @@ bitcode { testFixtures {} test {} } + + onlyIf { target.supportsThreads() } } module("concurrent_ms_gc") {