diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-07-01 12:48:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-01 12:48:11 +0200 |
commit | 03765b298554dcbad40f45372d6c59b358d4a845 (patch) | |
tree | c18271e0107f7ccb6af6c0bf7dbdedbdb720e01a /platform/iphone/detect.py | |
parent | daec5bed575776517528bca4ac0c6c21d6d3fefb (diff) | |
parent | b767d2e0fdf835dc181bb21c8be69a35671b60b8 (diff) | |
download | redot-engine-03765b298554dcbad40f45372d6c59b358d4a845.tar.gz |
Merge pull request #62587 from bruvzg/fix_m1_build
Diffstat (limited to 'platform/iphone/detect.py')
-rw-r--r-- | platform/iphone/detect.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/iphone/detect.py b/platform/iphone/detect.py index 392a0151be..862f1fe50b 100644 --- a/platform/iphone/detect.py +++ b/platform/iphone/detect.py @@ -98,10 +98,12 @@ def configure(env): if env["ios_simulator"]: detect_darwin_sdk_path("iphonesimulator", env) + env.Append(ASFLAGS=["-mios-simulator-version-min=13.0"]) env.Append(CCFLAGS=["-mios-simulator-version-min=13.0"]) env.extra_suffix = ".simulator" + env.extra_suffix else: detect_darwin_sdk_path("iphone", env) + env.Append(ASFLAGS=["-miphoneos-version-min=11.0"]) env.Append(CCFLAGS=["-miphoneos-version-min=11.0"]) if env["arch"] == "x86_64": @@ -113,6 +115,7 @@ def configure(env): " -fasm-blocks -isysroot $IPHONESDK" ).split() ) + env.Append(ASFLAGS=["-arch", "x86_64"]) elif env["arch"] == "arm64": env.Append( CCFLAGS=( @@ -122,6 +125,7 @@ def configure(env): " -isysroot $IPHONESDK".split() ) ) + env.Append(ASFLAGS=["-arch", "arm64"]) env.Append(CPPDEFINES=["NEED_LONG_INT"]) # Disable exceptions on non-tools (template) builds |