Set CFG_VERSION env var for tool builds

This commit is contained in:
Nick Cameron 2017-08-31 15:24:11 +12:00
parent 92867d22a8
commit 5eb478a9e6

View file

@ -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() {