mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
Prevent rmake.rs from using any nightly/unstable features
This commit is contained in:
committed by
Jieyou Xu
parent
ec3cde249f
commit
bd884d8043
@@ -105,6 +105,11 @@ pub(super) fn run_rmake_test(&self) {
|
||||
.expect("stage0 rustc is required to run run-make tests");
|
||||
let mut rustc = Command::new(&stage0_rustc);
|
||||
rustc
|
||||
// `rmake.rs` **must** be buildable by a stable compiler, it may not use *any* unstable
|
||||
// library or compiler features. Here, we force the stage 0 rustc to consider itself as
|
||||
// a stable-channel compiler via `RUSTC_BOOTSTRAP=-1` to prevent *any* unstable
|
||||
// library/compiler usages, even if stage 0 rustc is *actually* a nightly rustc.
|
||||
.env("RUSTC_BOOTSTRAP", "-1")
|
||||
.arg("-o")
|
||||
.arg(&recipe_bin)
|
||||
// Specify library search paths for `run_make_support`.
|
||||
|
||||
Reference in New Issue
Block a user