https://github.com/python/cpython/commit/6ecb620a0cae1b0b6183d1e6d0ae722013ca8cd2
commit: 6ecb620a0cae1b0b6183d1e6d0ae722013ca8cd2
branch: main
author: Zanie Blue <[email protected]>
committer: ned-deily <[email protected]>
date: 2025-01-13T03:38:28-05:00
summary:
gh-90905: Allow cross-compilation on macOS (#128385)
files:
A Misc/NEWS.d/next/Build/2024-12-31-17-09-37.gh-issue-90905.PjLNai.rst
M configure
M configure.ac
diff --git
a/Misc/NEWS.d/next/Build/2024-12-31-17-09-37.gh-issue-90905.PjLNai.rst
b/Misc/NEWS.d/next/Build/2024-12-31-17-09-37.gh-issue-90905.PjLNai.rst
new file mode 100644
index 00000000000000..31bb5fe005379a
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2024-12-31-17-09-37.gh-issue-90905.PjLNai.rst
@@ -0,0 +1 @@
+Add support for cross-compiling to x86_64 on aarch64/arm64 macOS.
diff --git a/configure b/configure
index bb77c558abda5a..70581e11b60682 100755
--- a/configure
+++ b/configure
@@ -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
;;
diff --git a/configure.ac b/configure.ac
index 653cd3f6c531b6..d7c3920d049d67 100644
--- a/configure.ac
+++ b/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
;;
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]