]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Treat arm64 as aarch64 for Apple M1.
authorMika Lindqvist <postmaster@raasu.org>
Sat, 9 Jul 2022 09:33:02 +0000 (12:33 +0300)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Mon, 15 Aug 2022 14:52:53 +0000 (16:52 +0200)
cmake/detect-arch.c
configure

index 84e6a841004079b2a2c1d9596f7c2d76f1e1fc7f..43ddb126aeeb891cdb57966f893fdb37669bc8a2 100644 (file)
@@ -12,7 +12,7 @@
     #error archfound i686
 
 // ARM
-#elif defined(__aarch64__) || defined(_M_ARM64)
+#elif defined(__aarch64__) || defined(__arm64__) || defined(_M_ARM64)
     #error archfound aarch64
 #elif defined(__arm__) || defined(__arm) || defined(_M_ARM) || defined(__TARGET_ARCH_ARM)
     #if defined(__ARM64_ARCH_8__) || defined(__ARMv8__) || defined(__ARMv8_A__)
index ffee40054849a95a3604f286424b47c9e0bb9a91..f28f1dba2f1de4639b9e63a58cd897a5816b0498 100755 (executable)
--- a/configure
+++ b/configure
@@ -359,7 +359,7 @@ if test "$gcc" -eq 1 && ($cc $CFLAGS -c $test.c) >> configure.log 2>&1; then
       else
         ARCH=native
       fi ;;
-    aarch64 | aarch64_be)
+    aarch64 | aarch64_be | arm64)
       if test "${uname}" = "elf"; then
         uname=aarch64
       fi
@@ -1125,7 +1125,7 @@ EOF
 
 check_neon_ld4_intrinsics() {
     if test $buildneon -eq 1 && test $native -eq 0; then
-        if test "$CC_ARCH" = "aarch64" || test "$CC_ARCH" = "aarch64_be"; then
+        if test "$CC_ARCH" = "aarch64" || test "$CC_ARCH" = "aarch64_be" || test "$CC_ARCH" = "arm64"; then
             neonflag="-march=armv8-a+simd"
         elif test $MFPU_NEON_AVAILABLE -eq 1; then
             neonflag="-mfpu=neon"