Skip to content

Commit

Permalink
Try fixing libtest unstable options error
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Mar 17, 2024
1 parent c303e76 commit f037404
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bootstrap/src/utils/render_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ pub(crate) fn add_flags_and_try_run_tests(builder: &Builder<'_>, cmd: &mut Comma
cmd.arg("--");
}
cmd.args(["-Z", "unstable-options", "--format", "json"]);
// If we pass a -Z flag to the test runner, we have to also configure RUSTC_BOOTSTRAP.
//
// This may already be set but setting it again is harmless.
cmd.env("RUSTC_BOOTSTRAP", "1");

try_run_tests(builder, cmd, false)
}
Expand Down

0 comments on commit f037404

Please sign in to comment.