Skip to content

Commit cb75ad5

Browse files
committed
Auto merge of rust-lang#81963 - pietroalbini:stable-1.50.0-pre2, r=pietroalbini
Rebuild 1.50.0 stable This PR rebuilds the 1.50.0 stable release with the following backport: * bootstrap: Locate llvm-dwp based on llvm-config bindir rust-lang#81955 cc `@rust-lang/release`
2 parents 690501e + a7f4cce commit cb75ad5

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/bootstrap/compile.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -1021,8 +1021,11 @@ impl Step for Assemble {
10211021
let src_exe = exe("llvm-dwp", target_compiler.host);
10221022
let dst_exe = exe("rust-llvm-dwp", target_compiler.host);
10231023
let llvm_config_bin = builder.ensure(native::Llvm { target: target_compiler.host });
1024-
let llvm_bin_dir = llvm_config_bin.parent().unwrap();
1025-
builder.copy(&llvm_bin_dir.join(&src_exe), &libdir_bin.join(&dst_exe));
1024+
if !builder.config.dry_run {
1025+
let llvm_bin_dir = output(Command::new(llvm_config_bin).arg("--bindir"));
1026+
let llvm_bin_dir = Path::new(llvm_bin_dir.trim());
1027+
builder.copy(&llvm_bin_dir.join(&src_exe), &libdir_bin.join(&dst_exe));
1028+
}
10261029
}
10271030

10281031
// Ensure that `libLLVM.so` ends up in the newly build compiler directory,

src/bootstrap/install.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fn install_sh(
2929
let prefix = default_path(&builder.config.prefix, "/usr/local");
3030
let sysconfdir = prefix.join(default_path(&builder.config.sysconfdir, "/etc"));
3131
let datadir = prefix.join(default_path(&builder.config.datadir, "share"));
32-
let docdir = prefix.join(default_path(&builder.config.docdir, "share/doc"));
32+
let docdir = prefix.join(default_path(&builder.config.docdir, "share/doc/rust"));
3333
let mandir = prefix.join(default_path(&builder.config.mandir, "share/man"));
3434
let libdir = prefix.join(default_path(&builder.config.libdir, "lib"));
3535
let bindir = prefix.join(&builder.config.bindir); // Default in config.rs

0 commit comments

Comments
 (0)