From: Nick Cameron Date: Thu, 31 Aug 2017 03:24:11 +0000 (+1200) Subject: Set CFG_VERSION env var for tool builds X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=5eb478a9e671bb6b2c868d426fadcc80a9d6f2c3;p=rust.git Set CFG_VERSION env var for tool builds --- diff --git a/src/bootstrap/tool.rs b/src/bootstrap/tool.rs index e759f1a3e6f..2f68d0a69a5 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() {