]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
make : fix detection of AVX2 on macOS (#1250)
authorDidzis Gosko <redacted>
Wed, 6 Sep 2023 15:22:21 +0000 (18:22 +0300)
committerGitHub <redacted>
Wed, 6 Sep 2023 15:22:21 +0000 (18:22 +0300)
Makefile

index d775b74b4b3396b2c6c16280bc74f4bd1b07c0e7..066ad59804d86164e98602e8f2b846aeedd3c72f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -67,7 +67,7 @@ endif
 #       feel free to update the Makefile for your architecture and send a pull request or issue
 ifeq ($(UNAME_M),$(filter $(UNAME_M),x86_64 i686 amd64))
        ifeq ($(UNAME_S),Darwin)
-               CPUINFO_CMD := sysctl machdep.cpu.features
+               CPUINFO_CMD := sysctl machdep.cpu.features machdep.cpu.leaf7_features
        else ifeq ($(UNAME_S),Linux)
                CPUINFO_CMD := cat /proc/cpuinfo
        else ifneq (,$(filter MINGW32_NT% MINGW64_NT%,$(UNAME_S)))