summaryrefslogtreecommitdiff
path: root/modules/opus
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-07-01 16:45:23 +0200
committerGitHub <noreply@github.com>2020-07-01 16:45:23 +0200
commit5c9ee93f3e6918974aa5dc7dab65a2fdbc8c3313 (patch)
tree9b2252be5843b7ce4efbb4ed570abcf8557c38fe /modules/opus
parent01559ca84e0782b91788be73609f2c8afed94027 (diff)
parent00299f15b46b695d6809f7f812daaad1ad520b4a (diff)
Merge pull request #39788 from bruvzg/macos_apple_silicon
[macOS] Add support for the Apple Silicon (ARM64) build target.
Diffstat (limited to 'modules/opus')
-rw-r--r--modules/opus/SCsub3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/opus/SCsub b/modules/opus/SCsub
index e51590d808..52c61fa708 100644
--- a/modules/opus/SCsub
+++ b/modules/opus/SCsub
@@ -227,6 +227,9 @@ if env["builtin_opus"]:
env_opus.Append(CPPDEFINES=["OPUS_ARM_OPT"])
elif "arch" in env and env["arch"] == "arm64":
env_opus.Append(CPPDEFINES=["OPUS_ARM64_OPT"])
+ elif env["platform"] == "osx":
+ if "arch" in env and env["arch"] == "arm64":
+ env_opus.Append(CPPDEFINES=["OPUS_ARM64_OPT"])
env_thirdparty = env_opus.Clone()
env_thirdparty.disable_warnings()