]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
Fix Darwin flags - was incorrectly always using the Linux else clause
authorTienshiao Ma <redacted>
Tue, 29 Nov 2022 07:29:34 +0000 (23:29 -0800)
committerGeorgi Gerganov <redacted>
Thu, 1 Dec 2022 17:17:04 +0000 (19:17 +0200)
Makefile

index 07c91c105178725e731fa4cbdea78cedbfa11876..75fdd73b3d43aa80e6c0b19a0c7f5a1890503c34 100644 (file)
--- 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