1
Fork 0

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 = if self.is_for_mir_opt_tests {
let mut cargo = builder.cargo(compiler, Mode::Std, SourceType::InTree, target, "check"); let mut cargo = builder.cargo(compiler, Mode::Std, SourceType::InTree, target, "check");
cargo.rustflag("-Zalways-encode-mir"); 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 cargo
} else { } else {
let mut cargo = builder.cargo(compiler, Mode::Std, SourceType::InTree, target, "build"); let mut cargo = builder.cargo(compiler, Mode::Std, SourceType::InTree, target, "build");