From 254fc53b17887b846775af40e8a96988270cc990 Mon Sep 17 00:00:00 2001 From: Sergey Bogolepov Date: Mon, 23 Aug 2021 12:56:59 +0700 Subject: [PATCH] [K/N] Disable mimalloc for MinGW on Linux and Windows There is a case-sensitivity problem when cross-compiling to MinGW. https://github.com/microsoft/mimalloc/commit/71ac98a fixes the problem, but it is not included into our current version of mimalloc. --- .../jetbrains/kotlin/konan/target/KonanTargetExtenstions.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kotlin-native/shared/src/main/kotlin/org/jetbrains/kotlin/konan/target/KonanTargetExtenstions.kt b/kotlin-native/shared/src/main/kotlin/org/jetbrains/kotlin/konan/target/KonanTargetExtenstions.kt index 9cf440567a4..6ac3afa0647 100644 --- a/kotlin-native/shared/src/main/kotlin/org/jetbrains/kotlin/konan/target/KonanTargetExtenstions.kt +++ b/kotlin-native/shared/src/main/kotlin/org/jetbrains/kotlin/konan/target/KonanTargetExtenstions.kt @@ -14,8 +14,8 @@ fun KonanTarget.supportsCodeCoverage(): Boolean = fun KonanTarget.supportsMimallocAllocator(): Boolean = when(this) { is KonanTarget.LINUX_X64 -> true - is KonanTarget.MINGW_X86 -> true - is KonanTarget.MINGW_X64 -> true + is KonanTarget.MINGW_X86 -> HostManager.hostIsMingw + is KonanTarget.MINGW_X64 -> HostManager.hostIsMingw is KonanTarget.MACOS_X64 -> true is KonanTarget.LINUX_ARM64 -> true is KonanTarget.LINUX_ARM32_HFP -> true