Browse Source

fix: Add iOS min SDK version link flags

This is required when publishing to the App Store, and consistent with
what we already do for the macOS deployment target.

(cherry picked from commit 4879eb7bd01716587f813dd97a27238ef92f3f9f)
Fabio Alessandrelli 3 tháng trước cách đây
mục cha
commit
6cdac999c2
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      tools/ios.py

+ 2 - 0
tools/ios.py

@@ -36,9 +36,11 @@ def generate(env):
     if env["ios_simulator"]:
         sdk_name = "iphonesimulator"
         env.Append(CCFLAGS=["-mios-simulator-version-min=" + env["ios_min_version"]])
+        env.Append(LINKFLAGS=["-mios-simulator-version-min=" + env["ios_min_version"]])
     else:
         sdk_name = "iphoneos"
         env.Append(CCFLAGS=["-miphoneos-version-min=" + env["ios_min_version"]])
+        env.Append(LINKFLAGS=["-miphoneos-version-min=" + env["ios_min_version"]])
 
     if sys.platform == "darwin":
         if env["IOS_SDK_PATH"] == "":