From b25737bd62534ea835487261e60846e8790b4676 Mon Sep 17 00:00:00 2001 From: Alessandro Amella <44754837+alessandroamella@users.noreply.github.com> Date: Mon, 22 Dec 2025 11:20:03 +0100 Subject: [PATCH] fix: remove hard-coded x86 flags in Makefile --- src/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 3d33384..86cd487 100755 --- a/src/Makefile +++ b/src/Makefile @@ -451,7 +451,12 @@ endif ifeq ($(KERNEL),Linux) # Soppressione warning ABI e impostazioni vettoriali per Linux - CXXFLAGS += -Wno-psabi -mprefer-vector-width=256 -mno-avx512f + CXXFLAGS += -Wno-psabi + + # Flag specifiche per architetture x86 + ifeq ($(findstring x86,$(ARCH)),x86) + CXXFLAGS += -mprefer-vector-width=256 -mno-avx512f + endif # Flag specifiche per architetture AVX2 ifeq ($(avx2),yes)