]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
make : use cpuinfo in MSYS2 to enable x86 ISA extensions on the host (#1216)
authorPrzemysław Pawełczyk <redacted>
Mon, 28 Aug 2023 10:28:26 +0000 (12:28 +0200)
committerGitHub <redacted>
Mon, 28 Aug 2023 10:28:26 +0000 (13:28 +0300)
Makefile

index b53a432083bc6e8c45751a827eb0fb8f09255f44..a2631011beac031b565a02d7c9059890f4fd96d8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -70,6 +70,8 @@ ifeq ($(UNAME_M),$(filter $(UNAME_M),x86_64 i686))
                CPUINFO_CMD := sysctl machdep.cpu.features
        else ifeq ($(UNAME_S),Linux)
                CPUINFO_CMD := cat /proc/cpuinfo
+       else ifneq (,$(filter MINGW32_NT% MINGW64_NT%,$(UNAME_S)))
+               CPUINFO_CMD := cat /proc/cpuinfo
        else ifeq ($(UNAME_S),Haiku)
                CPUINFO_CMD := sysinfo -cpu
        endif