Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,10 @@ fn generate_bindings(dir_out: &str, header: &str) {
"root::xsf_wrapper",
"pub type c_complex = num_complex::Complex<f64>;",
)
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
// The header being generated by us, we don't want its mtime to be taken into account to
// rerun this script, it should be always the same output for a given version of the crate
// So disable the rerun_on_header_files for the callbacks
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new().rerun_on_header_files(false)))
.generate()
.unwrap()
.write_to_file(PathBuf::from(dir_out).join("bindings.rs"))
Expand Down