Skip to content

Commit 7e0cd12

Browse files
committed
build(cmake): disable building of upstream unified binary
Set `LLAMA_BUILD_APP` to `OFF` to prevent the compilation of the new unified `llama` binary introduced in upstream llama.cpp. Since the Python package only requires the underlying shared libraries and specific targets, explicitly disabling the standalone application reduces build times and prevents unnecessary executable artifacts from being compiled. Signed-off-by: JamePeng <jame_peng@sina.com>
1 parent 5364cf9 commit 7e0cd12

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ if (LLAMA_BUILD)
222222
# Disable building of server
223223
set(LLAMA_BUILD_SERVER OFF CACHE BOOL "llama: build server example" FORCE)
224224

225+
# Disable building of unified binary
226+
set(LLAMA_BUILD_APP OFF CACHE BOOL "llama: build the unified binary" FORCE)
227+
225228
# Disable build the embedded Web UI for server
226229
set(LLAMA_BUILD_UI OFF CACHE BOOL "llama: build the embedded Web UI for server" FORCE)
227230
set(LLAMA_USE_PREBUILT_UI OFF CACHE BOOL "llama: use prebuilt UI from HF Bucket when available (requires LLAMA_BUILD_UI=ON)" FORCE)

0 commit comments

Comments
 (0)