Skip to content

Commit 5eb478a

Browse files
committed
Set CFG_VERSION env var for tool builds
1 parent 92867d2 commit 5eb478a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bootstrap/tool.rs

+1
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ fn prepare_tool_cargo(
120120
}
121121

122122
cargo.env("CFG_RELEASE_CHANNEL", &build.config.channel);
123+
cargo.env("CFG_VERSION", build.rust_version());
123124

124125
let info = GitInfo::new(&build.config, &dir);
125126
if let Some(sha) = info.sha() {

0 commit comments

Comments
 (0)