Skip to content

Commit f149f11

Browse files
committed
Review round 1: wrapper_mtmd.h
Signed-off-by: Dennis Keck <[email protected]>
1 parent 62f1511 commit f149f11

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

llama-cpp-sys-2/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ links = "llama"
99

1010
include = [
1111
"wrapper.h",
12+
"wrapper_mtmd.h",
1213
"build.rs",
1314
"/src",
1415

llama-cpp-sys-2/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ fn main() {
277277
// Configure mtmd feature if enabled
278278
if cfg!(feature = "mtmd") {
279279
bindings_builder = bindings_builder
280+
.header("wrapper_mtmd.h")
280281
.allowlist_function("mtmd_.*")
281282
.allowlist_type("mtmd_.*");
282283
}
@@ -432,6 +433,7 @@ fn main() {
432433
.expect("Failed to write bindings");
433434

434435
println!("cargo:rerun-if-changed=wrapper.h");
436+
println!("cargo:rerun-if-changed=wrapper_mtmd.h");
435437

436438
debug_log!("Bindings Created");
437439

llama-cpp-sys-2/wrapper.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
#include "llama.cpp/include/llama.h"
2-
#include "llama.cpp/tools/mtmd/mtmd.h"
3-
#include "llama.cpp/tools/mtmd/mtmd-helper.h"

llama-cpp-sys-2/wrapper_mtmd.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#include "llama.cpp/tools/mtmd/mtmd.h"
2+
#include "llama.cpp/tools/mtmd/mtmd-helper.h"

0 commit comments

Comments
 (0)