summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-09-14 00:00:03 +0200
committerGitHub <noreply@github.com>2022-09-14 00:00:03 +0200
commitd33db36f63cd383550a8f87c44d48995654ab58f (patch)
tree0b954b2235a56cf729535e1f1c57035314a5262d
parent2e6ba5ff13d6e044b2b06cc5e8c7d9a522852525 (diff)
parent21f7bd0723be5ca594547074d01dd92e5bf35e9c (diff)
Merge pull request #65648 from TedSpikes/check-for-ios-simulator
Check for ios_simulator when building for iOS and x86_64
-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=(