1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Use lld linker, if available.

This commit is contained in:
Bartosz Taudul
2022-04-27 02:17:16 +02:00
parent 7f44eba2e9
commit b10c83f358
7 changed files with 18 additions and 30 deletions
+9
View File
@@ -0,0 +1,9 @@
ARCH := $(shell uname -m)
ifeq (1,$(shell ld.lld --version > /dev/null && echo 1 || echo 0))
LDFLAGS += -fuse-ld=lld
endif
ifeq ($(ARCH),x86_64)
CFLAGS += -msse4.1
endif