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:
authorGraydon Hoare <graydon@pobox.com>2021-11-26 07:33:46 +0300
committerGraydon Hoare <graydon@pobox.com>2022-05-20 09:40:33 +0300
commite8627997970aa415f76b21b27252180aa0aa7133 (patch)
tree5ce02e23201ceccd3f3b768e36d19887b2afb5f9 /common
parent0d4a4f6d9bb6a2f3b1f1cb1b0316187f0f0a2a12 (diff)
Support TRACY_NO_ISA_EXTENSIONS build flag.
Diffstat (limited to 'common')
-rw-r--r--common/unix-debug.mk2
-rw-r--r--common/unix-release.mk2
2 files changed, 4 insertions, 0 deletions
diff --git a/common/unix-debug.mk b/common/unix-debug.mk
index f304dac4..3e57f6e0 100644
--- a/common/unix-debug.mk
+++ b/common/unix-debug.mk
@@ -6,6 +6,8 @@ LDFLAGS := -fuse-ld=mold
endif
endif
+ifndef TRACY_NO_ISA_EXTENSIONS
ifeq ($(ARCH),x86_64)
CFLAGS += -msse4.1
endif
+endif
diff --git a/common/unix-release.mk b/common/unix-release.mk
index a91ddb09..4b5eec80 100644
--- a/common/unix-release.mk
+++ b/common/unix-release.mk
@@ -10,8 +10,10 @@ LDFLAGS := -s
endif
endif
+ifndef TRACY_NO_ISA_EXTENSIONS
ifneq (,$(filter $(ARCH),aarch64 arm64))
CFLAGS += -mcpu=native
else
CFLAGS += -march=native
endif
+endif