Don't call std_cargo to build mir-only sysroots

This commit is contained in:
Ben Kimock 2024-02-05 19:52:02 -05:00
parent 2116ed723d
commit 476f91cbf7

View File

@ -239,7 +239,7 @@ impl Step for Std {
let mut cargo = if self.is_for_mir_opt_tests {
let mut cargo = builder.cargo(compiler, Mode::Std, SourceType::InTree, target, "check");
cargo.rustflag("-Zalways-encode-mir");
std_cargo(builder, target, compiler.stage, &mut cargo);
cargo.arg("--manifest-path").arg(builder.src.join("library/sysroot/Cargo.toml"));
cargo
} else {
let mut cargo = builder.cargo(compiler, Mode::Std, SourceType::InTree, target, "build");