Skip to content

Commit

Permalink
fix: sp1-recursion-gnark-ffi rebuilds unnecessarily (#1583)
Browse files Browse the repository at this point in the history
  • Loading branch information
xJonathanLEI authored Oct 2, 2024
1 parent 11b75da commit 3947eee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/recursion/gnark-ffi/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ fn main() {
let header_path = dest_path.join(format!("lib{}.h", lib_name));
let bindings = bindgen::Builder::default()
.header(header_path.to_str().unwrap())
.parse_callbacks(Box::new(CargoCallbacks::new()))
// `rerun_on_header_files` needs to be turned off as `libsp1gnark.h` is regenerated
// on each run.
.parse_callbacks(Box::new(CargoCallbacks::new().rerun_on_header_files(false)))
.generate()
.expect("Unable to generate bindings");

Expand Down

0 comments on commit 3947eee

Please sign in to comment.