diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2018-11-21 14:27:30 +0100 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2018-11-22 21:31:05 -0800 |
| commit | ec39ea893b9ac2f4096491c2851a2fe65a4ee7fc (patch) | |
| tree | b2bc8286aebe665801be420834ffdd8571b1e409 | |
| parent | fffcde647a5fa4d46db4fb42cd5525bfe973b86e (diff) | |
| download | rust-ec39ea893b9ac2f4096491c2851a2fe65a4ee7fc.tar.gz rust-ec39ea893b9ac2f4096491c2851a2fe65a4ee7fc.zip | |
Forward rust version number to tools
Clippy uses it to identify the correct documentation to point to
| -rw-r--r-- | src/bootstrap/tool.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bootstrap/tool.rs b/src/bootstrap/tool.rs index 15d27c61342..6868a063ce5 100644 --- a/src/bootstrap/tool.rs +++ b/src/bootstrap/tool.rs @@ -22,6 +22,7 @@ use util::{exe, add_lib_path}; use compile; use native; use channel::GitInfo; +use channel; use cache::Interned; use toolstate::ToolState; @@ -240,6 +241,7 @@ pub fn prepare_tool_cargo( cargo.env("CFG_RELEASE_CHANNEL", &builder.config.channel); cargo.env("CFG_VERSION", builder.rust_version()); + cargo.env("CFG_RELEASE_NUM", channel::CFG_RELEASE_NUM); let info = GitInfo::new(&builder.config, &dir); if let Some(sha) = info.sha() { |
