X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=build.rs;h=018375dbada874db7ddb8fc908222da41b83a1df;hb=79d3082cd779ccae785dbec906005af92ff36b1a;hp=336f0295bdf6fc9fda9b593a69bf22cdf6fb7dbf;hpb=a16edf84ce17095ebeebccb5662441ef1c824905;p=rust.git diff --git a/build.rs b/build.rs index 336f0295bdf..018375dbada 100644 --- a/build.rs +++ b/build.rs @@ -1,13 +1,3 @@ -// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution. -// -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - - fn main() { // Forward the profile to the main compilation println!("cargo:rustc-env=PROFILE={}", std::env::var("PROFILE").unwrap()); @@ -22,4 +12,8 @@ fn main() { "cargo:rustc-env=COMMIT_DATE={}", rustc_tools_util::get_commit_date().unwrap_or_default() ); + println!( + "cargo:rustc-env=RUSTC_RELEASE_CHANNEL={}", + rustc_tools_util::get_channel().unwrap_or_default() + ); }