Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-08-08 19:47:47 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-08-08 19:47:47 +0300
commitd67e51a4baea52e6d7cb2202874396af8793a02b (patch)
treeba8180adb457496879be32e643fbc8c890072519 /common
parent259672abc69fbcd77715b58b2a5d39efa1592a34 (diff)
Target native architecture when making debug builds.
Diffstat (limited to 'common')
-rw-r--r--common/unix-debug.mk6
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