File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ UNAME_M := $(shell uname -m)
6
6
# Compile flags
7
7
#
8
8
9
- CFLAGS = -O3 -std=c11
9
+ CFLAGS = -O3 -std=c11
10
10
CXXFLAGS = -O3 -std=c++11
11
11
12
12
CFLAGS += -Wall -Wextra -Wno-unused-parameter -Wno-unused-function
@@ -24,15 +24,16 @@ ifeq ($(UNAME_S),Darwin)
24
24
endif
25
25
26
26
# Architecture specific
27
- ifeq ($(UNAME_P ) ,x86_64)
27
+ # TODO: probably these flags need to be tweaked on some architectures
28
+ ifeq ($(UNAME_M ) ,x86_64)
28
29
CFLAGS += -mavx -mavx2 -mfma -mf16c
29
30
endif
30
- ifneq ($(filter arm% ,$(UNAME_P ) ) ,)
31
+ ifneq ($(filter arm% ,$(UNAME_M ) ) ,)
31
32
# Mac M1
32
33
endif
33
- ifneq ($(filter aarch64% ,$(UNAME_P ) ) ,)
34
- endif
35
- ifneq ($(filter armv6%,$(UNAME_M)),)
34
+ ifneq ($(filter aarch64% ,$(UNAME_M ) ) ,)
35
+ endif
36
+ ifneq ($(filter armv6% ,$(UNAME_M ) ) ,)
36
37
# Raspberry Pi 1, 2, 3
37
38
CFLAGS += -mfpu=neon-fp-armv8 -mfp16-format=ieee -mno-unaligned-access
38
39
endif
You can’t perform that action at this time.
0 commit comments