tracy/common/unix-release.mk

14 lines
214 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
LDFLAGS := -s
2021-01-26 18:39:24 +00:00
endif
ifeq ($(ARCH),aarch64)
CFLAGS += -mcpu=native
else
CFLAGS += -march=native
endif