Skip to content

Commit

Permalink
Fix Darwin flags - was incorrectly always using the Linux else clause
Browse files Browse the repository at this point in the history
  • Loading branch information
tienshiao authored and ggerganov committed Dec 1, 2022
1 parent 4698dcd commit e7f09a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ ifeq ($(UNAME_M),x86_64)
ifneq (,$(findstring AVX2,$(AVX2_M)))
CFLAGS += -mavx2
endif
endif
ifeq ($(UNAME_S),Linux)
else ifeq ($(UNAME_S),Linux)
AVX1_M := $(shell grep "avx " /proc/cpuinfo)
ifneq (,$(findstring avx,$(AVX1_M)))
CFLAGS += -mavx
Expand Down

0 comments on commit e7f09a0

Please sign in to comment.