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 4879eb7bd0)
This commit is contained in:
Fabio Alessandrelli
2025-05-21 16:30:50 +02:00
committed by David Snopek
parent 48544896ee
commit 6cdac999c2

View File

@@ -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"] == "":