build.rs: remove rebuild_if_path_changed for C files

Repeated

    CARGO_LOG=cargo::core::compiler::fingerprint=trace cargo b

show that we always rebuild because of "compat.c".  Not sure why.
Let's disable this for now so we can use the cache (for test targets etc.).
This commit is contained in:
Johannes Altmanninger 2023-12-09 15:35:44 +01:00
parent f118dbc4b9
commit 8fe82fcfcf

View File

@ -11,7 +11,6 @@ fn main() {
}
}
rsconf::rebuild_if_path_changed("fish-rust/src/cfg/compat.c");
cc::Build::new()
.file("fish-rust/src/compat.c")
.include(
@ -167,7 +166,6 @@ fn detect_features(target: Target) {
}
fn compiles(file: &str) -> bool {
rsconf::rebuild_if_path_changed(file);
let mut command = cc::Build::new()
.flag("-fsyntax-only")
.get_compiler()