From 476f91cbf7fd4080fea7ede8c145c83f0b589ff9 Mon Sep 17 00:00:00 2001 From: Ben Kimock Date: Mon, 5 Feb 2024 19:52:02 -0500 Subject: [PATCH] Don't call std_cargo to build mir-only sysroots --- src/bootstrap/src/core/build_steps/compile.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap/src/core/build_steps/compile.rs b/src/bootstrap/src/core/build_steps/compile.rs index 3c0d074807d39..73f29d6bb6f45 100644 --- a/src/bootstrap/src/core/build_steps/compile.rs +++ b/src/bootstrap/src/core/build_steps/compile.rs @@ -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");