Set CFG_VERSION env var for tool builds
This commit is contained in:
parent
92867d22a8
commit
5eb478a9e6
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue