tracy/common/unix-release.mk

18 lines
343 B
Makefile
Raw Normal View History

ARCH := $(shell uname -m)
2021-01-26 18:39:24 +00:00
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
2022-04-27 00:17:16 +00:00
endif
2021-01-26 21:54:54 +00:00
ifneq (,$(filter $(ARCH),aarch64 arm64))
CFLAGS += -mcpu=native
else
CFLAGS += -march=native
endif