Support new Mac M1 ARM64 architecture (#2591)

This commit is contained in:
sauwming 2020-12-14 11:48:46 +08:00 committed by GitHub
parent d65cacddd3
commit caa34e8cbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -9078,6 +9078,10 @@ $as_echo "Checking if libwebrtc is disabled...no" >&6; }
ac_webrtc_instset=neon
ac_webrtc_cflags="-DWEBRTC_ARCH_ARMV7 -mfloat-abi=hard -mfpu=neon"
;;
arm-apple-darwin*)
ac_webrtc_instset=neon
ac_webrtc_cflags="-DWEBRTC_ARCH_ARM64"
;;
*)
ac_webrtc_instset=sse2
;;

View File

@ -2135,6 +2135,10 @@ AC_ARG_ENABLE(libwebrtc,
ac_webrtc_instset=neon
ac_webrtc_cflags="-DWEBRTC_ARCH_ARMV7 -mfloat-abi=hard -mfpu=neon"
;;
arm-apple-darwin*)
ac_webrtc_instset=neon
ac_webrtc_cflags="-DWEBRTC_ARCH_ARM64"
;;
*)
ac_webrtc_instset=sse2
;;