File tree 1 file changed +10
-7
lines changed
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -1787,15 +1787,18 @@ impl Step for LlvmTools {
1787
1787
let tmp = tmpdir ( builder) ;
1788
1788
let image = tmp. join ( "llvm-tools-image" ) ;
1789
1789
drop ( fs:: remove_dir_all ( & image) ) ;
1790
- t ! ( fs:: create_dir_all( & image. join( "bin" ) ) ) ;
1791
1790
1792
1791
// Prepare the image directory
1792
+ let bindir = builder
1793
+ . llvm_out ( target)
1794
+ . join ( "bin" ) ;
1795
+ let dst = image. join ( "lib/rustlib" )
1796
+ . join ( target)
1797
+ . join ( "bin" ) ;
1798
+ t ! ( fs:: create_dir_all( & dst) ) ;
1793
1799
for tool in LLVM_TOOLS {
1794
- let exe = builder
1795
- . llvm_out ( target)
1796
- . join ( "bin" )
1797
- . join ( exe ( tool, & target) ) ;
1798
- builder. install ( & exe, & image. join ( "bin" ) , 0o755 ) ;
1800
+ let exe = bindir. join ( exe ( tool, & target) ) ;
1801
+ builder. install ( & exe, & dst, 0o755 ) ;
1799
1802
}
1800
1803
1801
1804
// Prepare the overlay
@@ -1818,7 +1821,7 @@ impl Step for LlvmTools {
1818
1821
. arg ( "--non-installed-overlay" ) . arg ( & overlay)
1819
1822
. arg ( format ! ( "--package-name={}-{}" , name, target) )
1820
1823
. arg ( "--legacy-manifest-dirs=rustlib,cargo" )
1821
- . arg ( "--component-name=llvm-tools" ) ;
1824
+ . arg ( "--component-name=llvm-tools-preview " ) ;
1822
1825
1823
1826
1824
1827
builder. run ( & mut cmd) ;
You can’t perform that action at this time.
0 commit comments