csbindgen seems change order all the time, maybe input ordering helps

This commit is contained in:
Vinzenz Schroeter 2024-10-16 20:02:35 +02:00
parent ac6954322a
commit 9193cfec10
2 changed files with 532 additions and 528 deletions

View file

@ -8,8 +8,12 @@ fn main() {
let mut builder = csbindgen::Builder::default(); let mut builder = csbindgen::Builder::default();
for source in fs::read_dir("../servicepoint_binding_c/src").unwrap() { let mut paths = fs::read_dir("../servicepoint_binding_c/src").unwrap()
let path = source.unwrap().path(); .map(|x| x.unwrap().path())
.collect::<Vec<_>>();
paths.sort();
for path in paths {
println!("cargo:rerun-if-changed={}", path.display()); println!("cargo:rerun-if-changed={}", path.display());
builder = builder.input_extern_file(path); builder = builder.input_extern_file(path);
} }