diff --git a/src/bootstrap/tool.rs b/src/bootstrap/tool.rs index e759f1a3e6f8..2f68d0a69a5d 100644 --- a/src/bootstrap/tool.rs +++ b/src/bootstrap/tool.rs @@ -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() {