Skip to content

Commit 7643291

Browse files
committed
fix: adapt to breaking llama.cpp changes
1 parent 39cef4b commit 7643291

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/bindings/utils/compileLLamaCpp.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ export async function compileLlamaCpp(buildOptions: BuildOptions, compileOptions
103103
if (toolchainFile != null && !cmakeCustomOptions.has("CMAKE_TOOLCHAIN_FILE"))
104104
cmakeToolchainOptions.set("CMAKE_TOOLCHAIN_FILE", toolchainFile);
105105

106+
if (toolchainFile != null &&
107+
buildOptions.gpu === "vulkan" &&
108+
useWindowsLlvm &&
109+
!cmakeCustomOptions.has("GGML_VULKAN_SHADERS_GEN_TOOLCHAIN")
110+
)
111+
cmakeToolchainOptions.set("GGML_VULKAN_SHADERS_GEN_TOOLCHAIN", toolchainFile);
112+
106113
if (buildOptions.gpu === "metal" && process.platform === "darwin" && !cmakeCustomOptions.has("GGML_METAL"))
107114
cmakeCustomOptions.set("GGML_METAL", "1");
108115
else if (!cmakeCustomOptions.has("GGML_METAL"))

0 commit comments

Comments
 (0)