diff options
| author | bors <bors@rust-lang.org> | 2025-03-07 16:49:59 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-03-07 16:49:59 +0000 |
| commit | c53af1ccd0305906c2c0aa7c561df99dbc9a4a35 (patch) | |
| tree | df247f71b06e8d5083b653bf6c7c9acc19d32824 /src/bootstrap | |
| parent | 03eb45452305f2d52348279d0caa5fc1f12c438d (diff) | |
| parent | 422705573c28708c6f4befeacaec442f6140be5c (diff) | |
| download | rust-c53af1ccd0305906c2c0aa7c561df99dbc9a4a35.tar.gz rust-c53af1ccd0305906c2c0aa7c561df99dbc9a4a35.zip | |
Auto merge of #138148 - onur-ozkan:fix-llvm-bitcode-build, r=jieyouxu
use target compiler on llvm-bitcode-linker The build compiler is already resolved inside the `ToolBuild` step, so we should pass only the target compilers for `Mode::ToolRustc` tools. Fixes https://github.com/rust-lang/rust/issues/138123 r? ghost try-job: dist-powerpc64le-linux
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/src/core/build_steps/compile.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bootstrap/src/core/build_steps/compile.rs b/src/bootstrap/src/core/build_steps/compile.rs index 78219500737..26c5c2bf411 100644 --- a/src/bootstrap/src/core/build_steps/compile.rs +++ b/src/bootstrap/src/core/build_steps/compile.rs @@ -1991,12 +1991,12 @@ impl Step for Assemble { } } - let maybe_install_llvm_bitcode_linker = |compiler| { + let maybe_install_llvm_bitcode_linker = || { if builder.config.llvm_bitcode_linker_enabled { trace!("llvm-bitcode-linker enabled, installing"); let llvm_bitcode_linker = builder.ensure(crate::core::build_steps::tool::LlvmBitcodeLinker { - compiler, + compiler: target_compiler, target: target_compiler.host, extra_features: vec![], }); @@ -2020,7 +2020,7 @@ impl Step for Assemble { builder.info(&format!("Creating a sysroot for stage{stage} compiler (use `rustup toolchain link 'name' build/host/stage{stage}`)", stage=target_compiler.stage)); } - maybe_install_llvm_bitcode_linker(target_compiler); + maybe_install_llvm_bitcode_linker(); return target_compiler; } @@ -2203,7 +2203,7 @@ impl Step for Assemble { ); } - maybe_install_llvm_bitcode_linker(build_compiler); + maybe_install_llvm_bitcode_linker(); // Ensure that `libLLVM.so` ends up in the newly build compiler directory, // so that it can be found when the newly built `rustc` is run. |
