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.
|
||||
println!("cargo:rerun-if-changed=build.rs");
|
||||
// gather version info
|
||||
println!(
|
||||
"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()
|
||||
);
|
||||
rustc_tools_util::setup_version_info!();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue