Skip to content

Commit 970848a

Browse files
committed
update needle
1 parent db7b57b commit 970848a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama-cpp-sys-2/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ fn metal_hack(build: &mut cc::Build) {
219219
let ggml_metal =
220220
std::fs::read_to_string(GGML_METAL_PATH).expect("Could not read ggml-metal.m");
221221

222-
let needle = r#"NSString * src = [NSString stringWithContentsOfFile:sourcePath encoding:NSUTF8StringEncoding error:&error];"#;
222+
let needle = r#"NSString * src = [NSString stringWithContentsOfFile:path_source encoding:NSUTF8StringEncoding error:&error];"#;
223223
if !ggml_metal.contains(needle) {
224224
panic!("ggml-metal.m does not contain the needle to be replaced; the patching logic needs to be reinvestigated. Contact a `llama-cpp-sys-2` developer!");
225225
}

0 commit comments

Comments
 (0)