Skip to content

Commit f38b843

Browse files
committed
fix: undo build backend library variations for arm64
1 parent d6c78c4 commit f38b843

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/bindings/utils/compileLLamaCpp.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,7 @@ export async function compileLlamaCpp(buildOptions: BuildOptions, compileOptions
146146
if (!cmakeCustomOptions.has("GGML_NATIVE") || isCmakeValueOff(cmakeCustomOptions.get("GGML_NATIVE"))) {
147147
cmakeCustomOptions.set("GGML_NATIVE", "OFF");
148148

149-
if (!cmakeCustomOptions.has("GGML_CPU_ALL_VARIANTS") && (
150-
buildOptions.arch === "x64" ||
151-
(buildOptions.arch === "arm64" && platform === "linux") ||
152-
(buildOptions.arch === "arm64" && platform === "mac")
153-
)) {
149+
if (buildOptions.arch === "x64" && !cmakeCustomOptions.has("GGML_CPU_ALL_VARIANTS")) {
154150
cmakeCustomOptions.set("GGML_CPU_ALL_VARIANTS", "ON");
155151
cmakeCustomOptions.set("GGML_BACKEND_DL", "ON");
156152
} else if (!cmakeCustomOptions.has("GGML_BACKEND_DL"))

0 commit comments

Comments
 (0)