Tienshiao Ma commited on
Commit
ecd7237
·
1 Parent(s): d311de4

Fix Darwin flags - was incorrectly always using the Linux else clause

Browse files
Files changed (1) hide show
  1. Makefile +1 -2
Makefile CHANGED
@@ -60,8 +60,7 @@ ifeq ($(UNAME_M),x86_64)
60
  ifneq (,$(findstring AVX2,$(AVX2_M)))
61
  CFLAGS += -mavx2
62
  endif
63
- endif
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