From 82faa7dcc977acf2e00ec4a9ecfd52fe5b83e3a6 Mon Sep 17 00:00:00 2001 From: Stefanos Stefanidis <46319359+calmsacibis995@users.noreply.github.com> Date: Wed, 8 Feb 2023 18:25:46 +0200 Subject: [PATCH] Allow xqemu to be built on macOS Ventura. When trying to build xqemu, the script fails with this: "ERROR: "cc" either does not exist or does not work". The issue in this case is the '-march=native' flag. Clang will complain that it is an unknown argument. --- build.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/build.sh b/build.sh index 8339f2624f..5664a678a3 100755 --- a/build.sh +++ b/build.sh @@ -47,7 +47,6 @@ case "$(uname -s)" in # adjust compilation option based on platform ;; Darwin) echo 'Compiling for MacOS…' - sys_cflags='-march=native' sys_opts='--disable-cocoa' # necessary to find libffi, which is required by gobject export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}/usr/local/opt/libffi/lib/pkgconfig"