[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v9 11/11] darwin: remove 64-bit build detection on 32-bit OS
From: |
Joelle van Dyne |
Subject: |
[PATCH v9 11/11] darwin: remove 64-bit build detection on 32-bit OS |
Date: |
Mon, 25 Jan 2021 17:24:57 -0800 |
A workaround added in early days of 64-bit OSX forced x86_64 if the
host machine had 64-bit support. This creates issues when cross-
compiling for ARM64. Additionally, the user can always use --cpu=* to
manually set the host CPU and therefore this workaround should be
removed.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Joelle van Dyne <j@getutm.app>
---
configure | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/configure b/configure
index 89836f8692..537ed111d8 100755
--- a/configure
+++ b/configure
@@ -626,13 +626,6 @@ fi
# the correct CPU with the --cpu option.
case $targetos in
Darwin)
- # on Leopard most of the system is 32-bit, so we have to ask the kernel if
we can
- # run 64-bit userspace code.
- # If the user didn't specify a CPU explicitly and the kernel says this is
- # 64 bit hw, then assume x86_64. Otherwise fall through to the usual
detection code.
- if test -z "$cpu" && test "$(sysctl -n hw.optional.x86_64)" = "1"; then
- cpu="x86_64"
- fi
HOST_DSOSUF=".dylib"
;;
SunOS)
@@ -776,10 +769,6 @@ OpenBSD)
Darwin)
bsd="yes"
darwin="yes"
- if [ "$cpu" = "x86_64" ] ; then
- QEMU_CFLAGS="-arch x86_64 $QEMU_CFLAGS"
- QEMU_LDFLAGS="-arch x86_64 $QEMU_LDFLAGS"
- fi
audio_drv_list="try-coreaudio try-sdl"
audio_possible_drivers="coreaudio sdl"
# Disable attempts to use ObjectiveC features in os/object.h since they
--
2.28.0
- Re: [PATCH v9 03/11] configure: check for sys/disk.h, (continued)
[PATCH v9 10/11] darwin: detect CoreAudio for build, Joelle van Dyne, 2021/01/25
[PATCH v9 07/11] darwin: fix cross-compiling for Darwin, Joelle van Dyne, 2021/01/25
[PATCH v9 11/11] darwin: remove 64-bit build detection on 32-bit OS,
Joelle van Dyne <=
[PATCH v9 08/11] configure: cross compile should use x86_64 cpu_family, Joelle van Dyne, 2021/01/25
[PATCH v9 09/11] block: check availablity for preadv/pwritev on mac, Joelle van Dyne, 2021/01/25
[PATCH v9 02/11] configure: cross-compiling with empty cross_prefix, Joelle van Dyne, 2021/01/25
[PATCH v9 04/11] slirp: feature detection for smbd, Joelle van Dyne, 2021/01/25
Re: [PATCH v9 00/11] iOS and Apple Silicon host support, Peter Maydell, 2021/01/28