mirror of
https://github.com/cccb/servicepoint.git
synced 2025-01-18 18:10:14 +01:00
csbindgen seems change order all the time, maybe input ordering helps
This commit is contained in:
parent
ac6954322a
commit
9193cfec10
File diff suppressed because it is too large
Load diff
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue