File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -746,9 +746,11 @@ impl Step for LlvmBitcodeLinker {
746
746
. join ( exe ( bin_name, self . compiler . host ) ) ;
747
747
748
748
if self . compiler . stage > 0 {
749
- let bindir = builder. sysroot ( self . compiler ) . join ( "bin" ) ;
750
- t ! ( fs:: create_dir_all( & bindir) ) ;
751
- let bin_destination = bindir. join ( exe ( bin_name, self . compiler . host ) ) ;
749
+ let bindir_self_contained = builder
750
+ . sysroot ( self . compiler )
751
+ . join ( format ! ( "lib/rustlib/{}/bin/self-contained" , self . target. triple) ) ;
752
+ t ! ( fs:: create_dir_all( & bindir_self_contained) ) ;
753
+ let bin_destination = bindir_self_contained. join ( exe ( bin_name, self . compiler . host ) ) ;
752
754
builder. copy_link ( & tool_out, & bin_destination) ;
753
755
bin_destination
754
756
} else {
You can’t perform that action at this time.
0 commit comments