Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
Signed-off-by: onur-ozkan <work@onurozkan.dev>
  • Loading branch information
onur-ozkan committed Apr 2, 2024
1 parent 6f7cdd6 commit 795d92b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/bootstrap/src/core/build_steps/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,24 @@ impl Step for Assemble {
if target_compiler.stage == builder.top_stage {
builder.info(&format!("Creating a sysroot for stage{stage} compiler (use `rustup toolchain link 'name' build/host/stage{stage}`)", stage=target_compiler.stage));
}

for backend in builder.config.codegen_backends(target_compiler.host) {
if backend == "llvm" {
continue; // Already built as part of rustc
}

builder.ensure(CodegenBackend {
compiler: builder.compiler(0, builder.config.build),
target: target_compiler.host,
backend: backend.clone(),
});
}
copy_codegen_backends_to_sysroot(
builder,
builder.compiler(0, builder.config.build),
target_compiler,
);

return target_compiler;
}

Expand Down

0 comments on commit 795d92b

Please sign in to comment.