mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +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
|
||||
BUILD := release
|
||||
|
||||
|
@ -1,3 +1,11 @@
|
||||
ARCH := $(shell uname -m)
|
||||
|
||||
ifeq (0,$(shell $(CC) --version | grep clang && echo 1 || echo 0))
|
||||
CFLAGS += -s
|
||||
endif
|
||||
|
||||
ifeq ($(ARCH),aarch64)
|
||||
CFLAGS += -mcpu=native
|
||||
else
|
||||
CFLAGS += -march=native
|
||||
endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
CFLAGS := -O3 -march=native
|
||||
CFLAGS := -O3
|
||||
DEFINES := -DNDEBUG
|
||||
BUILD := release
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
CFLAGS := -O3 -march=native
|
||||
CFLAGS := -O3
|
||||
DEFINES := -DNDEBUG
|
||||
BUILD := release
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
CFLAGS := -O3 -march=native
|
||||
CFLAGS := -O3
|
||||
DEFINES := -DNDEBUG
|
||||
BUILD := release
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user