gh-90905: Allow cross-compilation on macOS (#128385)

This commit is contained in:
Zanie Blue 2025-01-13 02:38:28 -06:00 committed by GitHub
parent 6e1e780540
commit 6ecb620a0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1 @@
Add support for cross-compiling to x86_64 on aarch64/arm64 macOS.

12
configure generated vendored
View file

@ -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
;;

View file

@ -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
;;