configure: add aarch64 to ARCH_LIST
authorJames Zern <jzern@google.com>
Fri, 21 Apr 2023 01:15:23 +0000 (18:15 -0700)
committerJames Zern <jzern@google.com>
Wed, 3 May 2023 00:43:39 +0000 (17:43 -0700)
This will allow identifying Windows Visual Studio targets as aarch64;
the Microsoft compiler does not define __aarch64__.

An alternative would be to define this in the code, checking for
_M_ARM64 or _M_ARM64EC. For now we'll use the existing VPX_ARCH_*
system. For compatibility VPX_ARCH_ARM will continue to be defined to 1
in this case.

Bug: webm:1788
Bug: b/277255076
Change-Id: I12e25710891e86f0c7339ba96884c18ed90ba16f

build/make/configure.sh
configure

index 3210565..ec9af5e 100644 (file)
@@ -842,6 +842,10 @@ process_common_toolchain() {
 
   # Enable the architecture family
   case ${tgt_isa} in
+    arm64 | armv8)
+      enable_feature arm
+      enable_feature aarch64
+      ;;
     arm*)
       enable_feature arm
       ;;
index 890ad39..2070772 100755 (executable)
--- a/configure
+++ b/configure
@@ -243,6 +243,7 @@ CODEC_FAMILIES="
 
 ARCH_LIST="
     arm
+    aarch64
     mips
     x86
     x86_64