Skip to content

Commit cee4bde

Browse files
[3.9] pythongh-120831: Increase the default minimum supported iOS version to 13.0 (python#121250)
Increases the default minimum iOS version to 13.0. Co-authored-by: Erlend E. Aasland <[email protected]>
1 parent aa7dcda commit cee4bde

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The default minimum iOS version was increased to 13.0.

configure

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3130,7 +3130,7 @@ $as_echo "\"$MACHDEP\"" >&6; }
31303130
# On cross-compile builds, configure will look for a host-specific compiler by
31313131
# prepending the user-provided host triple to the required binary name.
31323132
#
3133-
# On iOS, this results in binaries like "arm64-apple-ios12.0-simulator-gcc",
3133+
# On iOS, this results in binaries like "arm64-apple-ios13.0-simulator-gcc",
31343134
# which isn't a binary that exists, and isn't very convenient, as it contains the
31353135
# iOS version. As the default cross-compiler name won't exist, configure falls
31363136
# back to gcc, which *definitely* won't work. We're providing wrapper scripts for
@@ -3552,8 +3552,12 @@ if test "$cross_compiling" = yes; then
35523552
_host_device=${_host_device:=os}
35533553

35543554
# IPHONEOS_DEPLOYMENT_TARGET is the minimum supported iOS version
3555+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking iOS deployment target" >&5
3556+
$as_echo_n "checking iOS deployment target... " >&6; }
35553557
IPHONEOS_DEPLOYMENT_TARGET=${_host_os:3}
3556-
IPHONEOS_DEPLOYMENT_TARGET=${IPHONEOS_DEPLOYMENT_TARGET:=12.0}
3558+
IPHONEOS_DEPLOYMENT_TARGET=${IPHONEOS_DEPLOYMENT_TARGET:=13.0}
3559+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPHONEOS_DEPLOYMENT_TARGET" >&5
3560+
$as_echo "$IPHONEOS_DEPLOYMENT_TARGET" >&6; }
35573561

35583562
case "$host_cpu" in
35593563
aarch64)

configure.ac

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ AC_MSG_RESULT(["$MACHDEP"])
229229
# On cross-compile builds, configure will look for a host-specific compiler by
230230
# prepending the user-provided host triple to the required binary name.
231231
#
232-
# On iOS, this results in binaries like "arm64-apple-ios12.0-simulator-gcc",
232+
# On iOS, this results in binaries like "arm64-apple-ios13.0-simulator-gcc",
233233
# which isn't a binary that exists, and isn't very convenient, as it contains the
234234
# iOS version. As the default cross-compiler name won't exist, configure falls
235235
# back to gcc, which *definitely* won't work. We're providing wrapper scripts for
@@ -631,8 +631,10 @@ if test "$cross_compiling" = yes; then
631631
_host_device=${_host_device:=os}
632632

633633
# IPHONEOS_DEPLOYMENT_TARGET is the minimum supported iOS version
634+
AC_MSG_CHECKING([iOS deployment target])
634635
IPHONEOS_DEPLOYMENT_TARGET=${_host_os:3}
635-
IPHONEOS_DEPLOYMENT_TARGET=${IPHONEOS_DEPLOYMENT_TARGET:=12.0}
636+
IPHONEOS_DEPLOYMENT_TARGET=${IPHONEOS_DEPLOYMENT_TARGET:=13.0}
637+
AC_MSG_RESULT([$IPHONEOS_DEPLOYMENT_TARGET])
636638

637639
case "$host_cpu" in
638640
aarch64)

iOS/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ these libraries pre-compiled for iOS can be found in `this repository
185185
<https://github.com/beeware/cpython-apple-source-deps/releases>`__.
186186

187187
By default, Python will be compiled with an iOS deployment target (i.e., the
188-
minimum supported iOS version) of 12.0. To specify a different deployment
188+
minimum supported iOS version) of 13.0. To specify a different deployment
189189
target, provide the version number as part of the ``--host`` argument - for
190190
example, ``--host=arm64-apple-ios15.4-simulator`` would compile an ARM64
191191
simulator build with a deployment target of 15.4.

0 commit comments

Comments
 (0)