Skip to content

Commit 476f91c

Browse files
committed
Don't call std_cargo to build mir-only sysroots
1 parent 2116ed7 commit 476f91c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/src/core/build_steps/compile.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ impl Step for Std {
239239
let mut cargo = if self.is_for_mir_opt_tests {
240240
let mut cargo = builder.cargo(compiler, Mode::Std, SourceType::InTree, target, "check");
241241
cargo.rustflag("-Zalways-encode-mir");
242-
std_cargo(builder, target, compiler.stage, &mut cargo);
242+
cargo.arg("--manifest-path").arg(builder.src.join("library/sysroot/Cargo.toml"));
243243
cargo
244244
} else {
245245
let mut cargo = builder.cargo(compiler, Mode::Std, SourceType::InTree, target, "build");

0 commit comments

Comments
 (0)