Skip to content
Snippets Groups Projects
Commit 8a08d9ba authored by Kateryna Kostiuk's avatar Kateryna Kostiuk
Browse files

contrib: fix vpx build for Mac silicon

To build for arm64 on macOS, Darwin version 20 or higher
is required.

Change-Id: I6da0b78e64eee2b0b3b6169be58fd261ac3085be
parent 7a3ac8a6
No related branches found
No related tags found
No related merge requests found
......@@ -21,8 +21,10 @@ DEPS_vpx =
ifdef HAVE_CROSS_COMPILE
ifndef HAVE_IOS
ifndef HAVE_MACOSX
VPX_CROSS := $(CROSS_COMPILE)
endif
endif
else
VPX_CROSS :=
endif
......@@ -53,13 +55,11 @@ VPX_OS := linux
else ifdef HAVE_DARWIN_OS
ifeq ($(IOS_TARGET_PLATFORM),iPhoneSimulator)
VPX_OS := iphonesimulator
else ifeq ($(ARCH),armv7)
VPX_OS := darwin
else ifeq ($(ARCH),arm64)
else ifdef HAVE_IOS
VPX_OS := darwin
else
#to support minimum macOS version 10.13
VPX_OS := darwin17
# To build for arm64 on macOS, we need Darwin version 20 or higher
VPX_OS := darwin20
endif
else ifdef HAVE_SOLARIS
VPX_OS := solaris
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment