Skip to content

Commit 3de582b

Browse files
committed
fix(build): update WHISPER_OPTIONS to use llama.cpp GGML
1 parent e26a547 commit 3de582b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ CC = gcc
4141
CXX = g++
4242
CFLAGS = -Wall -Wextra -Wno-unused-parameter -I$(SRC_DIR) -I$(LLAMA_DIR)/ggml/include -I$(LLAMA_DIR)/include -I$(WHISPER_DIR)/include -I$(MINIAUDIO_DIR)
4343
LLAMA_OPTIONS = $(LLAMA) -DBUILD_SHARED_LIBS=OFF -DLLAMA_CURL=OFF -DLLAMA_BUILD_EXAMPLES=OFF -DLLAMA_BUILD_TESTS=OFF -DLLAMA_BUILD_TOOLS=OFF -DLLAMA_BUILD_SERVER=OFF -DGGML_RPC=OFF
44-
WHISPER_OPTIONS = $(WHISPER) -DBUILD_SHARED_LIBS=OFF -DWHISPER_BUILD_EXAMPLES=OFF -DWHISPER_BUILD_TESTS=OFF -DWHISPER_BUILD_SERVER=OFF -DWHISPER_RPC=OFF
44+
WHISPER_OPTIONS = $(WHISPER) -DBUILD_SHARED_LIBS=OFF -DWHISPER_BUILD_EXAMPLES=OFF -DWHISPER_BUILD_TESTS=OFF -DWHISPER_BUILD_SERVER=OFF -DWHISPER_RPC=OFF -DWHISPER_USE_SYSTEM_GGML=ON -Dggml_DIR=$(BUILD_LLAMA)/ggml/src
4545
MINIAUDIO_OPTIONS = $(MINIAUDIO) -DBUILD_SHARED_LIBS=OFF -DMINIAUDIO_BUILD_EXAMPLES=OFF -DMINIAUDIO_BUILD_TESTS=OFF
4646
# MinGW produces .a files without lib prefix, use -l:filename.a syntax
4747
ifeq ($(PLATFORM),windows)
@@ -239,7 +239,7 @@ build/llama.cpp.stamp:
239239
cmake --build $(BUILD_LLAMA) --config Release $(LLAMA_ARGS) $(ARGS)
240240
touch $@
241241

242-
build/whisper.cpp.stamp:
242+
build/whisper.cpp.stamp: build/llama.cpp.stamp
243243
cmake -B $(BUILD_WHISPER) $(WHISPER_OPTIONS) $(WHISPER_DIR)
244244
cmake --build $(BUILD_WHISPER) --config Release $(WHISPER_ARGS) $(ARGS)
245245
touch $@

0 commit comments

Comments
 (0)