Skip to content

Commit 6ecb620

Browse files
authored
gh-90905: Allow cross-compilation on macOS (#128385)
1 parent 6e1e780 commit 6ecb620

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add support for cross-compiling to x86_64 on aarch64/arm64 macOS.

configure

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

+12
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@ then
330330
*-apple-ios*)
331331
ac_sys_system=iOS
332332
;;
333+
*-*-darwin*)
334+
ac_sys_system=Darwin
335+
;;
333336
*-*-vxworks*)
334337
ac_sys_system=VxWorks
335338
;;
@@ -790,6 +793,15 @@ if test "$cross_compiling" = yes; then
790793
;;
791794
esac
792795
;;
796+
*-*-darwin*)
797+
case "$host_cpu" in
798+
arm*)
799+
_host_ident=arm
800+
;;
801+
*)
802+
_host_ident=$host_cpu
803+
esac
804+
;;
793805
*-*-vxworks*)
794806
_host_ident=$host_cpu
795807
;;

0 commit comments

Comments
 (0)