Spaces:
Running
Running
Tienshiao Ma
commited on
Commit
·
ecd7237
1
Parent(s):
d311de4
Fix Darwin flags - was incorrectly always using the Linux else clause
Browse files
Makefile
CHANGED
|
@@ -60,8 +60,7 @@ ifeq ($(UNAME_M),x86_64)
|
|
| 60 |
ifneq (,$(findstring AVX2,$(AVX2_M)))
|
| 61 |
CFLAGS += -mavx2
|
| 62 |
endif
|
| 63 |
-
|
| 64 |
-
ifeq ($(UNAME_S),Linux)
|
| 65 |
AVX1_M := $(shell grep "avx " /proc/cpuinfo)
|
| 66 |
ifneq (,$(findstring avx,$(AVX1_M)))
|
| 67 |
CFLAGS += -mavx
|
|
|
|
| 60 |
ifneq (,$(findstring AVX2,$(AVX2_M)))
|
| 61 |
CFLAGS += -mavx2
|
| 62 |
endif
|
| 63 |
+
else ifeq ($(UNAME_S),Linux)
|
|
|
|
| 64 |
AVX1_M := $(shell grep "avx " /proc/cpuinfo)
|
| 65 |
ifneq (,$(findstring avx,$(AVX1_M)))
|
| 66 |
CFLAGS += -mavx
|