We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fffcde6 commit ec39ea8Copy full SHA for ec39ea8
src/bootstrap/tool.rs
@@ -22,6 +22,7 @@ use util::{exe, add_lib_path};
22
use compile;
23
use native;
24
use channel::GitInfo;
25
+use channel;
26
use cache::Interned;
27
use toolstate::ToolState;
28
@@ -240,6 +241,7 @@ pub fn prepare_tool_cargo(
240
241
242
cargo.env("CFG_RELEASE_CHANNEL", &builder.config.channel);
243
cargo.env("CFG_VERSION", builder.rust_version());
244
+ cargo.env("CFG_RELEASE_NUM", channel::CFG_RELEASE_NUM);
245
246
let info = GitInfo::new(&builder.config, &dir);
247
if let Some(sha) = info.sha() {
0 commit comments