summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorTed Spikes <ted@tedspikes.com>2022-09-11 09:21:41 +0000
committerTed Spikes <ted@tedspikes.com>2022-09-13 14:04:08 +0300
commit21f7bd0723be5ca594547074d01dd92e5bf35e9c (patch)
tree3388aba8401121f24c056fb2b81d25f9845f1530 /platform
parent22a09fef5d56fc7c37d70118532509076ebd7b12 (diff)
Check for ios_simulator when building for x86_64
Diffstat (limited to 'platform')
-rw-r--r--platform/ios/detect.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/ios/detect.py b/platform/ios/detect.py
index 3cfb25cf61..ed7e714c4e 100644
--- a/platform/ios/detect.py
+++ b/platform/ios/detect.py
@@ -120,6 +120,10 @@ def configure(env):
env.Append(CCFLAGS=["-miphoneos-version-min=11.0"])
if env["arch"] == "x86_64":
+ if not env["ios_simulator"]:
+ print("ERROR: Building for iOS with 'arch=x86_64' requires 'ios_simulator=yes'.")
+ sys.exit(255)
+
env["ENV"]["MACOSX_DEPLOYMENT_TARGET"] = "10.9"
env.Append(
CCFLAGS=(