[vlc-devel] [PATCH 07/12] contrib: vpx: do not enable runtime cpu detect for aarch64 darwin

Felix Paul Kühne fkuehne at videolan.org
Mon Aug 31 19:05:57 CEST 2020


From: Marvin Scholz <epirat07 at gmail.com>

(cherry picked from commit 5681ea32dd6b57f96a251562fbcc0e413a74ddf5)
Signed-off-by: Felix Paul Kühne <felix at feepk.net>
---
 contrib/src/vpx/rules.mak | 20 +++++---------------
 1 file changed, 5 insertions(+), 15 deletions(-)

diff --git a/contrib/src/vpx/rules.mak b/contrib/src/vpx/rules.mak
index 5610b1a1e7..3d527dc9df 100644
--- a/contrib/src/vpx/rules.mak
+++ b/contrib/src/vpx/rules.mak
@@ -71,20 +71,12 @@ ifdef HAVE_ANDROID
 VPX_OS := android
 else ifdef HAVE_LINUX
 VPX_OS := linux
-else ifdef HAVE_MACOSX
-ifeq ($(OSX_VERSION),10.5)
-VPX_OS := darwin9
-else
-VPX_OS := darwin10
-endif
-VPX_CROSS :=
-else ifdef HAVE_IOS
+else ifdef HAVE_DARWIN_OS
 VPX_CROSS :=
 ifeq ($(ARCH),$(filter $(ARCH), arm aarch64))
 VPX_OS := darwin
 else
 VPX_OS := darwin11
-VPX_CROSS :=
 endif
 else ifdef HAVE_SOLARIS
 VPX_OS := solaris
@@ -113,15 +105,13 @@ VPX_CONF := \
 	--enable-vp9-highbitdepth \
 	--disable-tools
 
+ifneq ($(filter arm aarch64, $(ARCH)),)
+# Only enable runtime cpu detect on architectures other than arm/aarch64
+# when building for Windows and Darwin
 ifndef HAVE_WIN32
-ifndef HAVE_IOS
+ifndef HAVE_DARWIN_OS
 VPX_CONF += --enable-runtime-cpu-detect
 endif
-else
-# WIN32
-ifeq ($(filter arm aarch64, $(ARCH)),)
-# Only enable runtime cpu detect on architectures other than arm/aarch64
-VPX_CONF += --enable-runtime-cpu-detect
 endif
 endif
 
-- 
2.24.3 (Apple Git-128)



More information about the vlc-devel mailing list