Re: Predefined defines on arm64-macOS

2020-12-01 Thread Bruno Haible
Thank you, Martin. Good to see that we can continue to use - defined __APPLE__ && defined __MACH__ to test for macOS >= 10, - defined __aarch64__to test for 64-bit ARM CPU. - defined __ARM_PCS_AAPCS64 for the function call convention. Bruno

Predefined defines on arm64-macOS

2020-12-01 Thread Martin Storsjö
With Xcode 12.2 on arm64 macOS: $ : | gcc -E -dM - | sort > predefs.out $ grep -i '\(apple\|mach\|arm\|aarch\)' predefs.out #define __AARCH64EL__ 1 #define __AARCH64_SIMD__ 1 #define __APPLE_CC__ 6000 #define __APPLE__ 1 #define __ARM64_ARCH_8__ 1 #define __ARM_64BIT_STATE 1 #define __ARM_ACLE 20