diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-07-01 16:45:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-01 16:45:23 +0200 |
commit | 5c9ee93f3e6918974aa5dc7dab65a2fdbc8c3313 (patch) | |
tree | 9b2252be5843b7ce4efbb4ed570abcf8557c38fe /modules/webm | |
parent | 01559ca84e0782b91788be73609f2c8afed94027 (diff) | |
parent | 00299f15b46b695d6809f7f812daaad1ad520b4a (diff) |
Merge pull request #39788 from bruvzg/macos_apple_silicon
[macOS] Add support for the Apple Silicon (ARM64) build target.
Diffstat (limited to 'modules/webm')
-rw-r--r-- | modules/webm/libvpx/SCsub | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/webm/libvpx/SCsub b/modules/webm/libvpx/SCsub index dd6866ad0e..d0744fa313 100644 --- a/modules/webm/libvpx/SCsub +++ b/modules/webm/libvpx/SCsub @@ -238,6 +238,7 @@ else: is_x11_or_server_arm = (env["platform"] == "linuxbsd" or env["platform"] == "server") and ( platform.machine().startswith("arm") or platform.machine().startswith("aarch") ) + is_macos_x86 = env["platform"] == "osx" and ("arch" in env and (env["arch"] != "arm64")) is_ios_x86 = env["platform"] == "iphone" and ("arch" in env and env["arch"].startswith("x86")) is_android_x86 = env["platform"] == "android" and env["android_arch"].startswith("x86") if is_android_x86: @@ -248,14 +249,15 @@ else: and ( env["platform"] == "windows" or env["platform"] == "linuxbsd" - or env["platform"] == "osx" or env["platform"] == "haiku" + or is_macos_x86 or is_android_x86 or is_ios_x86 ) ) webm_cpu_arm = ( is_x11_or_server_arm + or (not is_macos_x86 and env["platform"] == "osx") or (not is_ios_x86 and env["platform"] == "iphone") or (not is_android_x86 and env["platform"] == "android") ) |