File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,9 @@ fn main() {
61
61
}
62
62
63
63
if !build_info_path. exists ( ) {
64
- fs:: write ( build_info_path, "\
64
+ fs:: write (
65
+ build_info_path,
66
+ "\
65
67
#ifndef BUILD_INFO_H
66
68
#define BUILD_INFO_H
67
69
@@ -72,7 +74,9 @@ fn main() {
72
74
73
75
#endif // BUILD_INFO_H
74
76
75
- " ) . unwrap ( ) ;
77
+ " ,
78
+ )
79
+ . unwrap ( ) ;
76
80
}
77
81
78
82
let dst = cmake:: Config :: new ( & build_dir)
@@ -88,7 +92,9 @@ fn main() {
88
92
89
93
let bindings = bindgen:: Builder :: default ( )
90
94
. header ( header_path. to_string_lossy ( ) )
91
- . parse_callbacks ( Box :: new ( bindgen:: CargoCallbacks :: new ( ) ) )
95
+ . parse_callbacks ( Box :: new (
96
+ bindgen:: CargoCallbacks :: new ( ) . rerun_on_header_files ( false ) ,
97
+ ) )
92
98
. generate_comments ( false )
93
99
. allowlist_function ( "llama_.*" )
94
100
. allowlist_type ( "llama_.*" )
You can’t perform that action at this time.
0 commit comments