From 78fa139a1c57e4fc6be4493af4e74c5e0711d302 Mon Sep 17 00:00:00 2001 From: "Daisuke Fujimura (fd0)" Date: Thu, 30 May 2024 19:38:06 +0900 Subject: [PATCH] Build on cygwin --- include/mimalloc/prim.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/mimalloc/prim.h b/include/mimalloc/prim.h index 3f4574dd..16de2c5f 100644 --- a/include/mimalloc/prim.h +++ b/include/mimalloc/prim.h @@ -209,6 +209,7 @@ static inline void mi_prim_tls_slot_set(size_t slot, void* value) mi_attr_noexce // Nevertheless, it seems needed on older graviton platforms (see issue #851). // For now, we only enable this for specific platforms. #if !defined(__APPLE__) /* on apple (M1) the wrong register is read (tpidr_el0 instead of tpidrro_el0) so fall back to TLS slot assembly ()*/ \ + && !defined(__CYGWIN__) \ && !defined(MI_LIBC_MUSL) \ && (!defined(__clang_major__) || __clang_major__ >= 14) /* older clang versions emit bad code; fall back to using the TLS slot () */ #if (defined(__GNUC__) && (__GNUC__ >= 7) && defined(__aarch64__)) /* aarch64 for older gcc versions (issue #851) */ \