Tuning #97

Merged
rektdie merged 7 commits from tuning into main 2025-09-07 19:44:51 +02:00
Showing only changes of commit 4b2f342d85 - Show all commits
+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)