From 09911f077e62818109b3a393ca4c2fdf9a2112f7 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Tue, 5 Sep 2023 16:33:40 +0200 Subject: [PATCH] Disable SVE targets for DYNAMIC_ARCH when compiling with (homebrew)gcc on macOS/arm64 --- Makefile.system | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile.system b/Makefile.system index b3968d739..5a4af9698 100644 --- a/Makefile.system +++ b/Makefile.system @@ -397,6 +397,9 @@ ifeq ($(OSNAME), Darwin) ifndef MACOSX_DEPLOYMENT_TARGET ifeq ($(ARCH), arm64) export MACOSX_DEPLOYMENT_TARGET=11.0 +ifeq ($(C_COMPILER), GCC) +export NO_SVE = 1 +endif else export MACOSX_DEPLOYMENT_TARGET=10.8 endif