mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 15:34:36 +00:00
ARM clang doesn't support -march=native.
This commit is contained in:
parent
62d6f4127d
commit
c8ea47782c
@ -1,4 +1,4 @@
|
|||||||
CFLAGS := -O3 -march=native
|
CFLAGS := -O3
|
||||||
DEFINES := -DNDEBUG
|
DEFINES := -DNDEBUG
|
||||||
BUILD := release
|
BUILD := release
|
||||||
|
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
ARCH := $(shell uname -m)
|
||||||
|
|
||||||
ifeq (0,$(shell $(CC) --version | grep clang && echo 1 || echo 0))
|
ifeq (0,$(shell $(CC) --version | grep clang && echo 1 || echo 0))
|
||||||
CFLAGS += -s
|
CFLAGS += -s
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(ARCH),aarch64)
|
||||||
|
CFLAGS += -mcpu=native
|
||||||
|
else
|
||||||
|
CFLAGS += -march=native
|
||||||
|
endif
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
CFLAGS := -O3 -march=native
|
CFLAGS := -O3
|
||||||
DEFINES := -DNDEBUG
|
DEFINES := -DNDEBUG
|
||||||
BUILD := release
|
BUILD := release
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
CFLAGS := -O3 -march=native
|
CFLAGS := -O3
|
||||||
DEFINES := -DNDEBUG
|
DEFINES := -DNDEBUG
|
||||||
BUILD := release
|
BUILD := release
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
CFLAGS := -O3 -march=native
|
CFLAGS := -O3
|
||||||
DEFINES := -DNDEBUG
|
DEFINES := -DNDEBUG
|
||||||
BUILD := release
|
BUILD := release
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user