mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Use mold for even faster linking.
This commit is contained in:
parent
d71ecd5271
commit
7d80c088fc
@ -1,7 +1,7 @@
|
||||
ARCH := $(shell uname -m)
|
||||
|
||||
ifeq (1,$(shell ld.lld --version > /dev/null && echo 1 || echo 0))
|
||||
LDFLAGS += -fuse-ld=lld
|
||||
ifeq (1,$(shell ld.mold --version > /dev/null && echo 1 || echo 0))
|
||||
LDFLAGS += -fuse-ld=mold
|
||||
endif
|
||||
|
||||
ifeq ($(ARCH),x86_64)
|
||||
|
@ -3,8 +3,8 @@ ARCH := $(shell uname -m)
|
||||
ifeq (0,$(shell $(CC) --version | grep clang && echo 1 || echo 0))
|
||||
CFLAGS += -s
|
||||
else
|
||||
ifeq (1,$(shell ld.lld --version > /dev/null && echo 1 || echo 0))
|
||||
LDFLAGS := -s -fuse-ld=lld
|
||||
ifeq (1,$(shell ld.mold --version > /dev/null && echo 1 || echo 0))
|
||||
LDFLAGS := -s -fuse-ld=mold
|
||||
else
|
||||
LDFLAGS := -s
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user