mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
Auto merge of #108288 - ozkanonur:hotfix-90244, r=Mark-Simulacrum
fix `build --stage 2 compiler/rustc` panic Skip assembling(which causes panic due to not found `.librustc.stamp` file) process for stage3(since it has problems with sysroot) if full-bootstrap isn't used. Resolves #90244
This commit is contained in:
@@ -1346,6 +1346,13 @@ fn run(self, builder: &Builder<'_>) -> Compiler {
|
||||
// when not performing a full bootstrap).
|
||||
builder.ensure(Rustc::new(build_compiler, target_compiler.host));
|
||||
|
||||
// FIXME: For now patch over problems noted in #90244 by early returning here, even though
|
||||
// we've not properly assembled the target sysroot. A full fix is pending further investigation,
|
||||
// for now full bootstrap usage is rare enough that this is OK.
|
||||
if target_compiler.stage >= 3 && !builder.config.full_bootstrap {
|
||||
return target_compiler;
|
||||
}
|
||||
|
||||
for &backend in builder.config.rust_codegen_backends.iter() {
|
||||
if backend == "llvm" {
|
||||
continue; // Already built as part of rustc
|
||||
|
||||
Reference in New Issue
Block a user