Skip to content

Commit 5d1ee66

Browse files
committed
fix build --stage 2 compiler/rustc panic
Signed-off-by: ozkanonur <[email protected]>
1 parent ea21839 commit 5d1ee66

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/bootstrap/compile.rs

+7
Original file line numberDiff line numberDiff line change
@@ -1295,6 +1295,13 @@ impl Step for Assemble {
12951295
// when not performing a full bootstrap).
12961296
builder.ensure(Rustc::new(build_compiler, target_compiler.host));
12971297

1298+
// FIXME: For now patch over problems noted in #90244 by early returning here, even though
1299+
// we've not properly assembled the target sysroot. A full fix is pending further investigation,
1300+
// for now full bootstrap usage is rare enough that this is OK.
1301+
if target_compiler.stage >= 3 && !builder.config.full_bootstrap {
1302+
return target_compiler;
1303+
}
1304+
12981305
for &backend in builder.config.rust_codegen_backends.iter() {
12991306
if backend == "llvm" {
13001307
continue; // Already built as part of rustc

0 commit comments

Comments
 (0)