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

pull/193/head
Tienshiao Ma 2022-11-28 23:29:34 -08:00 committed by Georgi Gerganov
parent 4698dcdb52
commit e7f09a0a61
1 changed files with 1 additions and 2 deletions

View File

@ -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