Skip to content

Commit 6cdac99

Browse files
Falessdsnopek
authored andcommitted
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 4879eb7)
1 parent 4854489 commit 6cdac99

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/ios.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ def generate(env):
3636
if env["ios_simulator"]:
3737
sdk_name = "iphonesimulator"
3838
env.Append(CCFLAGS=["-mios-simulator-version-min=" + env["ios_min_version"]])
39+
env.Append(LINKFLAGS=["-mios-simulator-version-min=" + env["ios_min_version"]])
3940
else:
4041
sdk_name = "iphoneos"
4142
env.Append(CCFLAGS=["-miphoneos-version-min=" + env["ios_min_version"]])
43+
env.Append(LINKFLAGS=["-miphoneos-version-min=" + env["ios_min_version"]])
4244

4345
if sys.platform == "darwin":
4446
if env["IOS_SDK_PATH"] == "":

0 commit comments

Comments
 (0)