Skip to content

Commit b4f2776

Browse files
miss-islingtonclementperon
authored andcommitted
[3.11] pythongh-156115: Use the simulator deployment-target flag for iOS simulator builds (pythonGH-156116) (python#156211)
Co-authored-by: Clément Péron <[email protected]>
1 parent 67886fb commit b4f2776

3 files changed

Lines changed: 17 additions & 4 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
iOS simulator builds are now configured with
2+
``-mios-simulator-version-min`` instead of the device's
3+
``-mios-version-min``. The device flag made the linker reject libraries
4+
resolved from the simulator SDK, so library detection silently failed.

‎configure‎

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎configure.ac‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -935,8 +935,12 @@ AS_CASE([$host],
935935
)
936936

937937
dnl Add the compiler flag for the iOS minimum supported OS version.
938-
AS_CASE([$ac_sys_system],
939-
[iOS], [
938+
AS_CASE([$host],
939+
[*-apple-ios*-simulator], [
940+
AS_VAR_APPEND([CFLAGS], [" -mios-simulator-version-min=${IPHONEOS_DEPLOYMENT_TARGET}"])
941+
AS_VAR_APPEND([LDFLAGS], [" -mios-simulator-version-min=${IPHONEOS_DEPLOYMENT_TARGET}"])
942+
],
943+
[*-apple-ios*], [
940944
AS_VAR_APPEND([CFLAGS], [" -mios-version-min=${IPHONEOS_DEPLOYMENT_TARGET}"])
941945
AS_VAR_APPEND([LDFLAGS], [" -mios-version-min=${IPHONEOS_DEPLOYMENT_TARGET}"])
942946
],

0 commit comments

Comments
 (0)