From c047c1914589fd76a53098c1ac502763de4288ab Mon Sep 17 00:00:00 2001 From: cryptk <421501+cryptk@users.noreply.github.com> Date: Tue, 2 Jul 2024 01:46:59 -0500 Subject: [PATCH] fix: make sure the GNUMake jobserver is passed to cmake for the llama.cpp build (#2697) Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com> --- backend/cpp/llama/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/cpp/llama/Makefile b/backend/cpp/llama/Makefile index 2af3e0aef043..87c07602ff0a 100644 --- a/backend/cpp/llama/Makefile +++ b/backend/cpp/llama/Makefile @@ -71,9 +71,9 @@ clean: purge grpc-server: llama.cpp llama.cpp/examples/grpc-server @echo "Building grpc-server with $(BUILD_TYPE) build type and $(CMAKE_ARGS)" ifneq (,$(findstring sycl,$(BUILD_TYPE))) - bash -c "source $(ONEAPI_VARS); \ + +bash -c "source $(ONEAPI_VARS); \ cd llama.cpp && mkdir -p build && cd build && cmake .. $(CMAKE_ARGS) && cmake --build . --config Release $(TARGET)" else - cd llama.cpp && mkdir -p build && cd build && cmake .. $(CMAKE_ARGS) && cmake --build . --config Release $(TARGET) + +cd llama.cpp && mkdir -p build && cd build && cmake .. $(CMAKE_ARGS) && cmake --build . --config Release $(TARGET) endif cp llama.cpp/build/bin/grpc-server . \ No newline at end of file