- use TargetArch.cmake to detect arm64, specifically

This commit is contained in:
Rachael Alexanderson 2020-12-11 08:34:44 -05:00
parent 6406427eb7
commit a02654339b

View file

@ -48,6 +48,8 @@ set(archdetect_c_code "
#elif defined(__ARM_ARCH_5TEJ__) \\
|| (defined(__TARGET_ARCH_ARM) && __TARGET_ARCH_ARM-0 >= 5)
#error cmake_ARCH armv5
#elif defined(_M_ARM64) || defined (__aarch64__)
#error cmake_ARCH arm64
#else
#error cmake_ARCH arm
#endif