archive mirror
 help / color / mirror / Atom feed
From: Gary Guo <>
To: Daniel Xu <>
Subject: Re: How are rustc -Z flags enabled during build?
Date: Thu, 2 Sep 2021 01:50:56 +0100	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <20210901230715.civmnrpmt3c2u72v@kashmir.localdomain>

On Wed, 1 Sep 2021 16:07:15 -0700
Daniel Xu <> wrote:

> When I try to run it outside of kbuild, I get:
>     error: the option `Z` is only accepted on the nightly compiler
> How does kbuild use the -Z features on a stable rustc?

You can set environment variable `RUSTC_BOOTSTRAP=1`.

- Gary Guo

  reply	other threads:[~2021-09-02  0:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-01 23:07 How are rustc -Z flags enabled during build? Daniel Xu
2021-09-02  0:50 ` Gary Guo [this message]
2021-09-02  5:50 ` Miguel Ojeda
2021-09-02 18:41   ` Daniel Xu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).