mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-90905: Allow cross-compilation on macOS (#128385)
This commit is contained in:
parent
6e1e780540
commit
6ecb620a0c
3 changed files with 25 additions and 0 deletions
|
@ -0,0 +1 @@
|
|||
Add support for cross-compiling to x86_64 on aarch64/arm64 macOS.
|
12
configure
generated
vendored
12
configure
generated
vendored
|
@ -4097,6 +4097,9 @@ then
|
|||
*-apple-ios*)
|
||||
ac_sys_system=iOS
|
||||
;;
|
||||
*-*-darwin*)
|
||||
ac_sys_system=Darwin
|
||||
;;
|
||||
*-*-vxworks*)
|
||||
ac_sys_system=VxWorks
|
||||
;;
|
||||
|
@ -4591,6 +4594,15 @@ printf "%s\n" "$IPHONEOS_DEPLOYMENT_TARGET" >&6; }
|
|||
;;
|
||||
esac
|
||||
;;
|
||||
*-*-darwin*)
|
||||
case "$host_cpu" in
|
||||
arm*)
|
||||
_host_ident=arm
|
||||
;;
|
||||
*)
|
||||
_host_ident=$host_cpu
|
||||
esac
|
||||
;;
|
||||
*-*-vxworks*)
|
||||
_host_ident=$host_cpu
|
||||
;;
|
||||
|
|
12
configure.ac
12
configure.ac
|
@ -330,6 +330,9 @@ then
|
|||
*-apple-ios*)
|
||||
ac_sys_system=iOS
|
||||
;;
|
||||
*-*-darwin*)
|
||||
ac_sys_system=Darwin
|
||||
;;
|
||||
*-*-vxworks*)
|
||||
ac_sys_system=VxWorks
|
||||
;;
|
||||
|
@ -790,6 +793,15 @@ if test "$cross_compiling" = yes; then
|
|||
;;
|
||||
esac
|
||||
;;
|
||||
*-*-darwin*)
|
||||
case "$host_cpu" in
|
||||
arm*)
|
||||
_host_ident=arm
|
||||
;;
|
||||
*)
|
||||
_host_ident=$host_cpu
|
||||
esac
|
||||
;;
|
||||
*-*-vxworks*)
|
||||
_host_ident=$host_cpu
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue