Fix x fix on the standard library itself

This commit is contained in:
Joshua Nelson 2023-02-03 05:29:43 +00:00
parent 8789e53929
commit 9be0b3e2bc

View File

@ -99,6 +99,10 @@ impl Step for Std {
cargo_subcommand(builder.kind),
);
std_cargo(builder, target, compiler.stage, &mut cargo);
if matches!(builder.config.cmd, Subcommand::Fix { .. }) {
// By default, cargo tries to fix all targets. Tell it not to fix tests until we've added `test` to the sysroot.
cargo.arg("--lib");
}
builder.info(&format!(
"Checking stage{} library artifacts ({} -> {})",