fixed makefile for ARM linux | bench 8216434

This commit is contained in:
rektdie committed 2025-09-04 22:57:25 +02:00
1 parent cb9051c477
commit 4b2f342d85
1 file changed
+9 -3
+9 -3
View File
@@ -33,13 +33,19 @@ LDFLAGS := -O3 -flto
ifeq ($(PLATFORM),mac)
ifeq ($(ARCH),arm64)
ARCH_FLAGS :=
# Apple Silicon
ARCH_FLAGS := -mcpu=apple-m1
else
ARCH_FLAGS := -march=native
endif
else
ARCH_FLAGS := -march=native
LDFLAGS += -fuse-ld=lld -static
ifeq ($(ARCH),aarch64)
# Generic Linux ARM64
ARCH_FLAGS := -mcpu=native
else
ARCH_FLAGS := -march=native
LDFLAGS += -fuse-ld=lld -static
endif
endif
CXXFLAGS += $(ARCH_FLAGS)