Skip to content

Commit 7ecdc89

Browse files
committed
Revert "bootstrap: copy llvm-dwp to sysroot"
This reverts commit 241160d.
1 parent 2dc1a8a commit 7ecdc89

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

src/bootstrap/compile.rs

-7
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,6 @@ impl Step for Assemble {
11431143
let libdir = builder.sysroot_libdir(target_compiler, target_compiler.host);
11441144
let libdir_bin = libdir.parent().unwrap().join("bin");
11451145
t!(fs::create_dir_all(&libdir_bin));
1146-
11471146
if let Some(lld_install) = lld_install {
11481147
let src_exe = exe("lld", target_compiler.host);
11491148
let dst_exe = exe("rust-lld", target_compiler.host);
@@ -1161,17 +1160,11 @@ impl Step for Assemble {
11611160
}
11621161
}
11631162

1164-
// Similarly, copy `llvm-dwp` into libdir for Split DWARF. Only copy it when the LLVM
1165-
// backend is used to avoid unnecessarily building LLVM and because LLVM is not checked
1166-
// out by default when the LLVM backend is not enabled.
11671163
if builder.config.rust_codegen_backends.contains(&INTERNER.intern_str("llvm")) {
1168-
let src_exe = exe("llvm-dwp", target_compiler.host);
1169-
let dst_exe = exe("rust-llvm-dwp", target_compiler.host);
11701164
let llvm_config_bin = builder.ensure(native::Llvm { target: target_compiler.host });
11711165
if !builder.config.dry_run {
11721166
let llvm_bin_dir = output(Command::new(llvm_config_bin).arg("--bindir"));
11731167
let llvm_bin_dir = Path::new(llvm_bin_dir.trim());
1174-
builder.copy(&llvm_bin_dir.join(&src_exe), &libdir_bin.join(&dst_exe));
11751168

11761169
// Since we've already built the LLVM tools, install them to the sysroot.
11771170
// This is the equivalent of installing the `llvm-tools-preview` component via

src/bootstrap/dist.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -398,12 +398,12 @@ impl Step for Rustc {
398398
// component for now.
399399
maybe_install_llvm_runtime(builder, host, image);
400400

401-
let src_dir = builder.sysroot_libdir(compiler, host).parent().unwrap().join("bin");
402401
let dst_dir = image.join("lib/rustlib").join(&*host.triple).join("bin");
403402
t!(fs::create_dir_all(&dst_dir));
404403

405404
// Copy over lld if it's there
406405
if builder.config.lld_enabled {
406+
let src_dir = builder.sysroot_libdir(compiler, host).parent().unwrap().join("bin");
407407
let rust_lld = exe("rust-lld", compiler.host);
408408
builder.copy(&src_dir.join(&rust_lld), &dst_dir.join(&rust_lld));
409409
// for `-Z gcc-ld=lld`
@@ -417,10 +417,6 @@ impl Step for Rustc {
417417
}
418418
}
419419

420-
// Copy over llvm-dwp if it's there
421-
let exe = exe("rust-llvm-dwp", compiler.host);
422-
builder.copy(&src_dir.join(&exe), &dst_dir.join(&exe));
423-
424420
// Man pages
425421
t!(fs::create_dir_all(image.join("share/man/man1")));
426422
let man_src = builder.src.join("src/doc/man");

0 commit comments

Comments
 (0)