Skip to content

Commit f037404

Browse files
Try fixing libtest unstable options error
1 parent c303e76 commit f037404

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bootstrap/src/utils/render_tests.rs

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ pub(crate) fn add_flags_and_try_run_tests(builder: &Builder<'_>, cmd: &mut Comma
1919
cmd.arg("--");
2020
}
2121
cmd.args(["-Z", "unstable-options", "--format", "json"]);
22+
// If we pass a -Z flag to the test runner, we have to also configure RUSTC_BOOTSTRAP.
23+
//
24+
// This may already be set but setting it again is harmless.
25+
cmd.env("RUSTC_BOOTSTRAP", "1");
2226

2327
try_run_tests(builder, cmd, false)
2428
}

0 commit comments

Comments
 (0)