mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
The mold linker is not recognized by gcc.
This commit is contained in:
parent
3bc42faeb3
commit
31b3212f76
@ -1,7 +1,9 @@
|
|||||||
ARCH := $(shell uname -m)
|
ARCH := $(shell uname -m)
|
||||||
|
|
||||||
ifeq (1,$(shell ld.mold --version > /dev/null && echo 1 || echo 0))
|
ifeq (1,$(shell $(CC) --version | grep clang > /dev/null && echo 1 || echo 0))
|
||||||
LDFLAGS += -fuse-ld=mold
|
ifeq (1,$(shell ld.mold --version > /dev/null && echo 1 || echo 0))
|
||||||
|
LDFLAGS := -fuse-ld=mold
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(ARCH),x86_64)
|
ifeq ($(ARCH),x86_64)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user