mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
18 lines
370 B
Makefile
18 lines
370 B
Makefile
ARCH := $(shell uname -m)
|
|
|
|
ifeq (0,$(shell $(CC) --version | grep clang > /dev/null && echo 1 || echo 0))
|
|
CFLAGS += -s
|
|
else
|
|
ifeq (1,$(shell ld.mold --version > /dev/null 2> /dev/null && echo 1 || echo 0))
|
|
LDFLAGS := -s -fuse-ld=mold
|
|
else
|
|
LDFLAGS := -s
|
|
endif
|
|
endif
|
|
|
|
ifneq (,$(filter $(ARCH),aarch64 arm64))
|
|
CFLAGS += -mcpu=native
|
|
else
|
|
CFLAGS += -march=native
|
|
endif
|