From d67e51a4baea52e6d7cb2202874396af8793a02b Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 8 Aug 2022 18:47:47 +0200 Subject: Target native architecture when making debug builds. --- common/unix-debug.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'common') 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 -- cgit v1.2.3