Skip to content

Commit

Permalink
pythongh-90905: Allow cross-compilation on macOS (python#128385)
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb authored Jan 13, 2025
1 parent 6e1e780 commit 6ecb620
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add support for cross-compiling to x86_64 on aarch64/arm64 macOS.
12 changes: 12 additions & 0 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@ then
*-apple-ios*)
ac_sys_system=iOS
;;
*-*-darwin*)
ac_sys_system=Darwin
;;
*-*-vxworks*)
ac_sys_system=VxWorks
;;
Expand Down Expand Up @@ -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
;;
Expand Down

0 comments on commit 6ecb620

Please sign in to comment.