tracy/common/unix-debug.mk
2022-05-05 02:40:00 +02:00

12 lines
276 B
Makefile

ARCH := $(shell uname -m)
ifeq (1,$(shell $(CC) --version | grep clang > /dev/null && echo 1 || echo 0))
ifeq (1,$(shell ld.mold --version > /dev/null 2> /dev/null && echo 1 || echo 0))
LDFLAGS := -fuse-ld=mold
endif
endif
ifeq ($(ARCH),x86_64)
CFLAGS += -msse4.1
endif