Skip to content

Commit 2e682a5

Browse files
committed
fix: Add iOS min SDK version to link flags
This is required when publishing to the App Store, and consistent with what we already do for the macOS deployment target.
1 parent 681fb04 commit 2e682a5

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)