mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-10 22:13:27 +00:00
Set CFG_VERSION env var for tool builds
This commit is contained in:
parent
92867d22a8
commit
5eb478a9e6
@ -120,6 +120,7 @@ fn prepare_tool_cargo(
|
||||
}
|
||||
|
||||
cargo.env("CFG_RELEASE_CHANNEL", &build.config.channel);
|
||||
cargo.env("CFG_VERSION", build.rust_version());
|
||||
|
||||
let info = GitInfo::new(&build.config, &dir);
|
||||
if let Some(sha) = info.sha() {
|
||||
|
Loading…
Reference in New Issue
Block a user