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
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-04-28 23:51:56 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-04-29 20:13:16 +0300
commit31b3212f7656947ce7f2b748ee6fcf2c27593081 (patch)
tree36e6e4a5c8f3f67015d4ebf911590531d6199bb1 /common/unix-debug.mk
parent3bc42faeb369b150b2e9651bdfba583534a6fa12 (diff)
The mold linker is not recognized by gcc.
Diffstat (limited to 'common/unix-debug.mk')
-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 832998de..275eb4d6 100644
--- a/common/unix-debug.mk
+++ b/common/unix-debug.mk
@@ -1,7 +1,9 @@
ARCH := $(shell uname -m)
-ifeq (1,$(shell ld.mold --version > /dev/null && echo 1 || echo 0))
-LDFLAGS += -fuse-ld=mold
+ifeq (1,$(shell $(CC) --version | grep clang > /dev/null && echo 1 || echo 0))
+ ifeq (1,$(shell ld.mold --version > /dev/null && echo 1 || echo 0))
+LDFLAGS := -fuse-ld=mold
+ endif
endif
ifeq ($(ARCH),x86_64)