浏览代码

Merge pull request #65648 from TedSpikes/check-for-ios-simulator

Check for ios_simulator when building for iOS and x86_64
Rémi Verschelde 3 年之前
父节点
当前提交
d33db36f63
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      platform/ios/detect.py

+ 4 - 0
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=(