From db0358a4981de179ec850ebbfb49b6a9bb092c61 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Sun, 29 Dec 2024 20:06:05 -0600 Subject: [PATCH 1/2] Allow cross-compilation on macOS --- configure | 12 ++++++++++++ configure.ac | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/configure b/configure index 299eff6bc3bf70..0f82952709c6f0 100755 --- a/configure +++ b/configure @@ -4052,6 +4052,9 @@ then *-apple-ios*) ac_sys_system=iOS ;; + *-*-darwin*) + ac_sys_system=Darwin + ;; *-*-vxworks*) ac_sys_system=VxWorks ;; @@ -4542,6 +4545,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 badb19d55895de..74b89f14121146 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 ;; From 407a5fa17238699451a666433dc9a9f5fca0e2bb Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Tue, 31 Dec 2024 17:10:04 -0600 Subject: [PATCH 2/2] Add news entry --- .../next/Build/2024-12-31-17-09-37.gh-issue-90905.PjLNai.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Build/2024-12-31-17-09-37.gh-issue-90905.PjLNai.rst 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.