File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1021,8 +1021,11 @@ impl Step for Assemble {
1021
1021
let src_exe = exe ( "llvm-dwp" , target_compiler. host ) ;
1022
1022
let dst_exe = exe ( "rust-llvm-dwp" , target_compiler. host ) ;
1023
1023
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
+ }
1026
1029
}
1027
1030
1028
1031
// Ensure that `libLLVM.so` ends up in the newly build compiler directory,
You can’t perform that action at this time.
0 commit comments