]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
whisper : fix build (#0)
authorGeorgi Gerganov <redacted>
Fri, 15 Nov 2024 06:40:47 +0000 (08:40 +0200)
committerGeorgi Gerganov <redacted>
Fri, 15 Nov 2024 13:21:04 +0000 (15:21 +0200)
Makefile
src/whisper.cpp

index 33f78470d03619fde8358e4d55909bb96c871881..a3835dd1653e00c5710a77ab2fca54fc3dee5c68 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -801,6 +801,7 @@ endif
 
 OBJ_GGML += \
        ggml/src/ggml.o \
+       ggml/src/ggml-cpu.o \
        ggml/src/ggml-alloc.o \
        ggml/src/ggml-backend.o \
        ggml/src/ggml-quants.o \
@@ -916,6 +917,12 @@ ggml/src/ggml.o: \
        ggml/include/ggml.h
        $(CC)  $(CFLAGS)   -c $< -o $@
 
+ggml/src/ggml-cpu.o: \
+       ggml/src/ggml-cpu.c \
+       ggml/include/ggml.h \
+       ggml/src/ggml-common.h
+       $(CC)  $(CFLAGS)   -c $< -o $@
+
 ggml/src/ggml-alloc.o: \
        ggml/src/ggml-alloc.c \
        ggml/include/ggml.h \
index 754ff096d65ce1fa50757a035148026894235c87..1c4965b6d4b531a06cfa4142862ed306388da978 100644 (file)
@@ -4,6 +4,8 @@
 #include "coreml/whisper-encoder.h"
 #endif
 
+#include "ggml-cpu.h"
+
 #ifdef GGML_USE_METAL
 #include "ggml-metal.h"
 #endif