[vlc-commits] contrib: fix architecture handling for macOS

Felix Paul Kühne git at videolan.org
Thu Dec 3 06:06:03 UTC 2020


vlc/vlc-3.0 | branch: master | Felix Paul Kühne <felix at feepk.net> | Mon Nov 30 18:10:39 2020 +0100| [4e8d3f3eb953186c6ea6374c7c4573a289247ac2] | committer: Felix Paul Kühne

contrib: fix architecture handling for macOS

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=4e8d3f3eb953186c6ea6374c7c4573a289247ac2
---

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

diff --git a/contrib/bootstrap b/contrib/bootstrap
index 8b389bb747..4e0fd82a88 100755
--- a/contrib/bootstrap
+++ b/contrib/bootstrap
@@ -282,6 +282,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"



More information about the vlc-commits mailing list