We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87bacf2 commit d3fea13Copy full SHA for d3fea13
src/bootstrap/compile.rs
@@ -1075,8 +1075,11 @@ impl Step for Assemble {
1075
let src_exe = exe("llvm-dwp", target_compiler.host);
1076
let dst_exe = exe("rust-llvm-dwp", target_compiler.host);
1077
let llvm_config_bin = builder.ensure(native::Llvm { target: target_compiler.host });
1078
- let llvm_bin_dir = llvm_config_bin.parent().unwrap();
1079
- builder.copy(&llvm_bin_dir.join(&src_exe), &libdir_bin.join(&dst_exe));
+ if !builder.config.dry_run {
+ let llvm_bin_dir = output(Command::new(llvm_config_bin).arg("--bindir"));
1080
+ let llvm_bin_dir = Path::new(llvm_bin_dir.trim());
1081
+ builder.copy(&llvm_bin_dir.join(&src_exe), &libdir_bin.join(&dst_exe));
1082
+ }
1083
}
1084
1085
// Ensure that `libLLVM.so` ends up in the newly build compiler directory,
0 commit comments