mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
14 lines
232 B
Makefile
14 lines
232 B
Makefile
ARCH := $(shell uname -m)
|
|
|
|
ifeq (0,$(shell $(CC) --version | grep clang && echo 1 || echo 0))
|
|
CFLAGS += -s
|
|
else
|
|
LDFLAGS := -s
|
|
endif
|
|
|
|
ifneq (,$(filter $(ARCH),aarch64 arm64))
|
|
CFLAGS += -mcpu=native
|
|
else
|
|
CFLAGS += -march=native
|
|
endif
|