Skip to content

Commit 2a8cc2f

Browse files
fix(buun-llama-cpp): isolate fork patch series
The buun build copies the stock llama.cpp backend directory, including patches that target upstream. Remove that copied patch directory before invoking the shared build so only the explicit buun compatibility series is applied to the fork. Assisted-by: Codex:gpt-5 [systematic-debugging]
1 parent c8694c2 commit 2a8cc2f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

backend/cpp/buun-llama-cpp/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ PATCHES_DIR := $(CURRENT_MAKEFILE_DIR)/patches
4040
define buun-llama-cpp-build
4141
rm -rf $(CURRENT_MAKEFILE_DIR)/../buun-llama-cpp-$(1)-build
4242
cp -rf $(LLAMA_CPP_DIR) $(CURRENT_MAKEFILE_DIR)/../buun-llama-cpp-$(1)-build
43+
# Stock llama.cpp patches target upstream and may not apply to this fork.
44+
# The buun-specific compatibility series is applied explicitly below.
45+
rm -rf $(CURRENT_MAKEFILE_DIR)/../buun-llama-cpp-$(1)-build/patches
4346
$(MAKE) -C $(CURRENT_MAKEFILE_DIR)/../buun-llama-cpp-$(1)-build purge
4447
# Augment the copied grpc-server.cpp's KV-cache allow-list with the
4548
# fork's turbo2/turbo3/turbo4/turbo2_tcq/turbo3_tcq types and wire up the

0 commit comments

Comments
 (0)