[vlc-devel] [PATCH 1/7] contrib: fix architecture handling for macOS

Felix Paul Kühne fkuehne at videolan.org
Mon Nov 30 19:18:40 CET 2020


From: Felix Paul Kühne <felix at feepk.net>

---
 contrib/bootstrap | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/contrib/bootstrap b/contrib/bootstrap
index 5a33182722..7c4f6fb0d5 100755
--- a/contrib/bootstrap
+++ b/contrib/bootstrap
@@ -278,6 +278,16 @@ case "${OS}" in
 		then
 			check_macosx_sdk
 			add_make_enabled "HAVE_MACOSX" "HAVE_DARWIN_OS" "HAVE_BSD"
+
+			case "${HOST}" in
+			    *arm64*|*aarch64*)
+			    add_make "PLATFORM_SHORT_ARCH := arm64"
+			    add_make_enabled "HAVE_NEON"
+			    ;;
+			    *x86_64*)
+			    add_make "PLATFORM_SHORT_ARCH := x86_64"
+			    ;;
+			esac;
 		else
 			check_ios_sdk
 			add_make_enabled "HAVE_IOS" "HAVE_DARWIN_OS" "HAVE_BSD" "HAVE_FPU"
-- 
2.24.3 (Apple Git-128)



More information about the vlc-devel mailing list