Skip to content

Commit 62a9fcc

Browse files
committed
fix(makefile): build only llama and mtmd targets to avoid cpp-httplib failures on Windows
1 parent e9e55ea commit 62a9fcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ SKIP_UNITTEST ?= 0
5959
CC = gcc
6060
CXX = g++
6161
CFLAGS = -Wall -Wextra -Wno-unused-parameter -I$(SRC_DIR) -I$(BUILD_GGML)/include -I$(WHISPER_DIR)/include -I$(MINIAUDIO_DIR) -I$(LLAMA_DIR)/tools/mtmd
62-
LLAMA_OPTIONS = $(LLAMA) -DBUILD_SHARED_LIBS=OFF -DLLAMA_BUILD_EXAMPLES=OFF -DLLAMA_BUILD_TESTS=OFF -DLLAMA_BUILD_TOOLS=ON -DLLAMA_BUILD_SERVER=OFF -DGGML_RPC=OFF
62+
LLAMA_OPTIONS = $(LLAMA) -DBUILD_SHARED_LIBS=OFF -DLLAMA_BUILD_COMMON=ON -DLLAMA_BUILD_EXAMPLES=OFF -DLLAMA_BUILD_TESTS=OFF -DLLAMA_BUILD_TOOLS=ON -DLLAMA_BUILD_SERVER=OFF -DGGML_RPC=OFF
6363
WHISPER_OPTIONS = $(LLAMA) $(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
6464
MINIAUDIO_OPTIONS = $(MINIAUDIO) -DBUILD_SHARED_LIBS=OFF -DMINIAUDIO_BUILD_EXAMPLES=OFF -DMINIAUDIO_BUILD_TESTS=OFF
6565
# MinGW produces .a files without lib prefix, use -l:filename.a syntax
@@ -275,7 +275,7 @@ else
275275
endif
276276
$(BUILD_DIR)/llama.cpp.stamp:
277277
cmake -B $(BUILD_LLAMA) $(LLAMA_OPTIONS) $(LLAMA_DIR)
278-
cmake --build $(BUILD_LLAMA) --config Release $(LLAMA_ARGS) $(ARGS)
278+
cmake --build $(BUILD_LLAMA) --config Release --target llama --target mtmd $(LLAMA_ARGS) $(ARGS)
279279
cmake --install $(BUILD_LLAMA) --prefix $(BUILD_GGML)
280280
touch $@
281281

0 commit comments

Comments
 (0)