Skip to content

Commit 90b2c8e

Browse files
committed
Assemble libLLVM into the target lib-dir too
1 parent 86c29d6 commit 90b2c8e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/bootstrap/compile.rs

+1
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,7 @@ impl Step for Assemble {
773773
// Ensure that `libLLVM.so` ends up in the newly build compiler directory,
774774
// so that it can be found when the newly built `rustc` is run.
775775
dist::maybe_install_llvm_runtime(builder, target_compiler.host, &sysroot);
776+
dist::maybe_install_llvm_target(builder, target_compiler.host, &sysroot);
776777

777778
// Link the compiler binary itself into place
778779
let out_dir = builder.cargo_out(build_compiler, Mode::Rustc, host);

src/bootstrap/dist.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2267,7 +2267,7 @@ fn maybe_install_llvm(builder: &Builder<'_>, target: Interned<String>, dst_libdi
22672267
}
22682268

22692269
/// Maybe add libLLVM.so to the target lib-dir for linking.
2270-
fn maybe_install_llvm_target(builder: &Builder<'_>, target: Interned<String>, sysroot: &Path) {
2270+
pub fn maybe_install_llvm_target(builder: &Builder<'_>, target: Interned<String>, sysroot: &Path) {
22712271
let dst_libdir = sysroot.join("lib/rustlib").join(&*target).join("lib");
22722272
maybe_install_llvm(builder, target, &dst_libdir);
22732273
}

0 commit comments

Comments
 (0)