use setup_version_info!
This commit is contained in:
parent
47aeaba8b3
commit
9a32db7e17
1 changed files with 1 additions and 8 deletions
|
@ -2,12 +2,5 @@ fn main() {
|
||||||
// Don't rebuild miri when nothing changed.
|
// Don't rebuild miri when nothing changed.
|
||||||
println!("cargo:rerun-if-changed=build.rs");
|
println!("cargo:rerun-if-changed=build.rs");
|
||||||
// gather version info
|
// gather version info
|
||||||
println!(
|
rustc_tools_util::setup_version_info!();
|
||||||
"cargo:rustc-env=GIT_HASH={}",
|
|
||||||
rustc_tools_util::get_commit_hash().unwrap_or_default()
|
|
||||||
);
|
|
||||||
println!(
|
|
||||||
"cargo:rustc-env=COMMIT_DATE={}",
|
|
||||||
rustc_tools_util::get_commit_date().unwrap_or_default()
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue