mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-27 16:51:15 -03:00
Rebuild on changes relevant to build artifacts
If anything changes in one of the listed directories or files, trigger a rebuild. Rebuilds are needed to update the version info built into the binaries. The version info includes an abbreviated git commit hash, as well as information about whether the repo was in a dirty state (uncommitted changes) when building. Changes to files not explicitly listed will not trigger a rebuild, so to get accurate version info upon such changes (also when checking out a different commit which does not differ in any of the listed files), a rebuild needs to be triggered manually (e.g. via `cargo clean` or `touch build.rs`).
This commit is contained in:
committed by
Fabian Boehm
parent
6dcead7be5
commit
460b93a5bc
3
build.rs
3
build.rs
@@ -48,8 +48,7 @@ fn main() {
|
||||
let targetman = cman.as_path().join("target").join("man");
|
||||
build_man(&targetman);
|
||||
}
|
||||
rsconf::rebuild_if_path_changed("src/libc.c");
|
||||
rsconf::rebuild_if_path_changed("src/");
|
||||
rsconf::rebuild_if_paths_changed(&["src", "printf", "Cargo.toml", "Cargo.lock", "build.rs"]);
|
||||
cc::Build::new()
|
||||
.file("src/libc.c")
|
||||
.include(build_dir)
|
||||
|
||||
Reference in New Issue
Block a user