From: Tienshiao Ma Date: Tue, 29 Nov 2022 07:29:34 +0000 (-0800) Subject: Fix Darwin flags - was incorrectly always using the Linux else clause X-Git-Tag: upstream/1.7.4~1765 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=e7f09a0a61824e2d89afab33d8b764bce78f6271;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp Fix Darwin flags - was incorrectly always using the Linux else clause --- diff --git a/Makefile b/Makefile index 07c91c10..75fdd73b 100644 --- a/Makefile +++ b/Makefile @@ -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