X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=build.rs;h=b5484bec3c8b8dca5dc0a00930d846e60533d4a7;hb=f4083c5ae72f5f80bf19e881528c4d39b38db0e7;hp=22a6910f167a4d74f519817053443de1692c2d0b;hpb=5c5e8cc942c8ef97d19f820dc8c4fb4a9397774e;p=rust.git diff --git a/build.rs b/build.rs index 22a6910f167..b5484bec3c8 100644 --- a/build.rs +++ b/build.rs @@ -1,12 +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()); @@ -21,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() + ); }