mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
LTO + lld wants the compiler to be clang.
This commit is contained in:
parent
b10c83f358
commit
afd4cdec63
@ -3,11 +3,11 @@ 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
|
||||
else
|
||||
LDFLAGS := -s
|
||||
endif
|
||||
|
||||
ifeq (1,$(shell ld.lld --version > /dev/null && echo 1 || echo 0))
|
||||
LDFLAGS += -fuse-ld=lld
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq (,$(filter $(ARCH),aarch64 arm64))
|
||||
|
Loading…
Reference in New Issue
Block a user