summaryrefslogtreecommitdiff
path: root/platform/osx
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-07-01 11:29:21 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-07-01 12:44:23 +0300
commitb767d2e0fdf835dc181bb21c8be69a35671b60b8 (patch)
treea01b91ac4b024ac6595b606a5c8e9392a9fba522 /platform/osx
parent110248cd57b5abb82c216d4a117fd7696a593931 (diff)
Add arch flag to assembler to fix build on ARM64 macOS / iOS.
Diffstat (limited to 'platform/osx')
-rw-r--r--platform/osx/detect.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/osx/detect.py b/platform/osx/detect.py
index 8d848d2094..67c2b9af7a 100644
--- a/platform/osx/detect.py
+++ b/platform/osx/detect.py
@@ -79,10 +79,12 @@ def configure(env):
if env["arch"] == "arm64":
print("Building for macOS 11.0+, platform arm64.")
+ env.Append(ASFLAGS=["-arch", "arm64", "-mmacosx-version-min=11.0"])
env.Append(CCFLAGS=["-arch", "arm64", "-mmacosx-version-min=11.0"])
env.Append(LINKFLAGS=["-arch", "arm64", "-mmacosx-version-min=11.0"])
else:
print("Building for macOS 10.12+, platform x86_64.")
+ env.Append(ASFLAGS=["-arch", "x86_64", "-mmacosx-version-min=10.12"])
env.Append(CCFLAGS=["-arch", "x86_64", "-mmacosx-version-min=10.12"])
env.Append(LINKFLAGS=["-arch", "x86_64", "-mmacosx-version-min=10.12"])