Skip to content

Commit 9479fad

Browse files
committed
Fix regression that causes unconditional rebuilds
561158b changed build.rs to use CargoCallbacks with the option to issue rerun directive for input headers set to true. This causes a unconditional rebuilds of the crate because one of the input headers (seccomp.h) is generated in build.rs. This changes the option back to false to fix the rebuilds.
1 parent 141bf77 commit 9479fad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

foundations/build.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ mod security {
175175
.allowlist_var("PR_GET_SECCOMP")
176176
.allowlist_var("PR_SET_NAME")
177177
.derive_default(true)
178-
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
178+
.parse_callbacks(Box::new(
179+
bindgen::CargoCallbacks::new().rerun_on_header_files(false),
180+
))
179181
.generate()
180182
.unwrap()
181183
.write_to_file(out_dir.join("security_sys.rs"))

0 commit comments

Comments
 (0)