Skip to content

Commit 03ec18b

Browse files
authored
fix: make disabling metal on build work (#55)
1 parent d99e3b0 commit 03ec18b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/compileLLamaCpp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export async function compileLlamaCpp({
2626
const cmakeCustomOptions = [];
2727

2828
if ((metal && process.platform === "darwin") || process.env.LLAMA_METAL === "1") cmakeCustomOptions.push("LLAMA_METAL=1");
29-
else cmakeCustomOptions.push("LLAMA_METAL=0");
29+
else cmakeCustomOptions.push("LLAMA_METAL=OFF");
3030

3131
if (cuda || process.env.LLAMA_CUBLAS === "1") cmakeCustomOptions.push("LLAMA_CUBLAS=1");
3232
if (process.env.LLAMA_MPI === "1") cmakeCustomOptions.push("LLAMA_MPI=1");

0 commit comments

Comments
 (0)