Skip to content

Commit

Permalink
[3.10] pythongh-120831: Increase the default minimum supported iOS ve…
Browse files Browse the repository at this point in the history
…rsion to 13.0 (python#121250)

Increases the default minimum iOS version to 13.0.

Co-authored-by: Erlend E. Aasland <[email protected]>
  • Loading branch information
freakboy3742 and erlend-aasland committed Aug 5, 2024
1 parent cd17c93 commit 1ce84da
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The default minimum iOS version was increased to 13.0.
8 changes: 6 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -3158,7 +3158,7 @@ $as_echo "\"$MACHDEP\"" >&6; }
# On cross-compile builds, configure will look for a host-specific compiler by
# prepending the user-provided host triple to the required binary name.
#
# On iOS, this results in binaries like "arm64-apple-ios12.0-simulator-gcc",
# On iOS, this results in binaries like "arm64-apple-ios13.0-simulator-gcc",
# which isn't a binary that exists, and isn't very convenient, as it contains the
# iOS version. As the default cross-compiler name won't exist, configure falls
# back to gcc, which *definitely* won't work. We're providing wrapper scripts for
Expand Down Expand Up @@ -3580,8 +3580,12 @@ if test "$cross_compiling" = yes; then
_host_device=${_host_device:=os}

# IPHONEOS_DEPLOYMENT_TARGET is the minimum supported iOS version
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking iOS deployment target" >&5
printf %s "checking iOS deployment target... " >&6; }
IPHONEOS_DEPLOYMENT_TARGET=${_host_os:3}
IPHONEOS_DEPLOYMENT_TARGET=${IPHONEOS_DEPLOYMENT_TARGET:=12.0}
IPHONEOS_DEPLOYMENT_TARGET=${IPHONEOS_DEPLOYMENT_TARGET:=13.0}
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPHONEOS_DEPLOYMENT_TARGET" >&5
printf "%s\n" "$IPHONEOS_DEPLOYMENT_TARGET" >&6; }

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

# IPHONEOS_DEPLOYMENT_TARGET is the minimum supported iOS version
AC_MSG_CHECKING([iOS deployment target])
IPHONEOS_DEPLOYMENT_TARGET=${_host_os:3}
IPHONEOS_DEPLOYMENT_TARGET=${IPHONEOS_DEPLOYMENT_TARGET:=12.0}
IPHONEOS_DEPLOYMENT_TARGET=${IPHONEOS_DEPLOYMENT_TARGET:=13.0}
AC_MSG_RESULT([$IPHONEOS_DEPLOYMENT_TARGET])

case "$host_cpu" in
aarch64)
Expand Down
2 changes: 1 addition & 1 deletion iOS/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ these libraries pre-compiled for iOS can be found in `this repository
<https://github.com/beeware/cpython-apple-source-deps/releases>`__.

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

0 comments on commit 1ce84da

Please sign in to comment.