diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2022-08-08 19:47:47 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2022-08-08 19:47:47 +0300 |
commit | d67e51a4baea52e6d7cb2202874396af8793a02b (patch) | |
tree | ba8180adb457496879be32e643fbc8c890072519 /common | |
parent | 259672abc69fbcd77715b58b2a5d39efa1592a34 (diff) |
Target native architecture when making debug builds.
Diffstat (limited to 'common')
-rw-r--r-- | common/unix-debug.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/unix-debug.mk b/common/unix-debug.mk index 3e57f6e0..9838061f 100644 --- a/common/unix-debug.mk +++ b/common/unix-debug.mk @@ -7,7 +7,9 @@ LDFLAGS := -fuse-ld=mold endif ifndef TRACY_NO_ISA_EXTENSIONS -ifeq ($(ARCH),x86_64) -CFLAGS += -msse4.1 +ifneq (,$(filter $(ARCH),aarch64 arm64)) +CFLAGS += -mcpu=native +else +CFLAGS += -march=native endif endif |