X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;ds=sidebyside;f=build.rs;h=b5484bec3c8b8dca5dc0a00930d846e60533d4a7;hb=f4083c5ae72f5f80bf19e881528c4d39b38db0e7;hp=336f0295bdf6fc9fda9b593a69bf22cdf6fb7dbf;hpb=1e0729d48a2c062042f9587bca8e9078bb8ef619;p=rust.git diff --git a/build.rs b/build.rs index 336f0295bdf..b5484bec3c8 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() + ); }