We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
bootstrap
1 parent cc34ca1 commit e993e62Copy full SHA for e993e62
src/bootstrap/test.rs
@@ -1679,6 +1679,12 @@ impl Step for Bootstrap {
1679
.env("CARGO_TARGET_DIR", build.out.join("bootstrap"))
1680
.env("RUSTC_BOOTSTRAP", "1")
1681
.env("RUSTC", &build.initial_rustc);
1682
+ if let Some(flags) = option_env!("RUSTFLAGS") {
1683
+ // Use the same rustc flags for testing as for "normal" compilation,
1684
+ // so that Cargo doesn’t recompile the entire dependency graph every time:
1685
+ // https://github.com/rust-lang/rust/issues/49215
1686
+ cmd.env("RUSTFLAGS", flags);
1687
+ }
1688
if !build.fail_fast {
1689
cmd.arg("--no-fail-fast");
1690
}
0 commit comments