[Mac OS X] Force enable LSE2 on Apple AArch64 as a workaround for missing macros.

AppleClang defines the macros noted in types.hpp, but not LLVM clang for some obnoxious reason.
This commit is contained in:
schm1dtmac
2026-09-29 15:01:34 +02:00
committed by Ani
parent d9a72d6ca7
commit 615f529e65
+1 -1
View File
@@ -23,7 +23,7 @@
// See Arm C Language Extensions Documentation
// Currently there is no feature macro for LSE2 specifically so we define it ourself
// Unfortunately the __ARM_ARCH integer macro isn't universally defined so we use this hack instead
#if defined(__ARM_ARCH_8_4__) || defined(__ARM_ARCH_8_5__) || defined(__ARM_ARCH_8_6__) || defined(__ARM_ARCH_9__)
#if defined(__APPLE__) || (__ARM_ARCH_8_4__) || defined(__ARM_ARCH_8_5__) || defined(__ARM_ARCH_8_6__) || defined(__ARM_ARCH_9__)
#define ARM_FEATURE_LSE2 1
#endif
#endif