From cd89e70a7bb06f0a30d03fa11127e726173e78f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Mon, 1 Jan 2024 21:50:44 +0100 Subject: [PATCH] ci/build-freebsd: use march=native for QEMU hosted build This is workaround to not emit instructions that are broken with current version of QEMU used in CI job. Fixes SIGBUS on valid code when executed in QEMU caused by issue with CVTPS2PD instruction. QEMU issue: https://gitlab.com/qemu-project/qemu/-/issues/1377 QEMU fix: https://gitlab.com/qemu-project/qemu/-/commit/abd41884c530aa025ada253bf1a5bd0c2b808219 Should be resolved after QEMU update to 8.2.0: https://github.com/cross-platform-actions/action/issues/78 --- ci/build-freebsd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/build-freebsd.sh b/ci/build-freebsd.sh index c393fb25fee32..e272ef6774267 100755 --- a/ci/build-freebsd.sh +++ b/ci/build-freebsd.sh @@ -9,7 +9,7 @@ export LDFLAGS="$LDFLAGS -L/usr/local/lib" meson setup build \ --werror \ - -Dc_args="-Wno-error=deprecated -Wno-error=deprecated-declarations" \ + -Dc_args="-Wno-error=deprecated -Wno-error=deprecated-declarations -march=native" \ -Diconv=disabled \ -Dlibmpv=true \ -Dlua=enabled \