File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1598,8 +1598,8 @@ impl GccDylibSet {
15981598 return ;
15991599 }
16001600
1601- // <rustc>/lib
1602- let lib_sysroot = builder. rustc_libdir ( compiler) ;
1601+ // <rustc>/lib/<host-target>/codegen-backends
1602+ let cg_sysroot = builder. sysroot_codegen_backends ( compiler) ;
16031603
16041604 for ( target, libgccjit) in & self . dylibs {
16051605 let libgccjit = libgccjit. libgccjit ( ) ;
@@ -1613,8 +1613,8 @@ impl GccDylibSet {
16131613 format!( "Cannot find libgccjit at {}" , libgccjit. display( ) )
16141614 ) ;
16151615
1616- // <rustc >/lib/rustlib/ <target>/lib /libgccjit.so
1617- let dest_dir = lib_sysroot . join ( "rustlib " ) . join ( target) . join ( "lib" ) ;
1616+ // <cg-sysroot >/lib/<target>/libgccjit.so
1617+ let dest_dir = cg_sysroot . join ( "lib " ) . join ( target) ;
16181618 t ! ( fs:: create_dir_all( & dest_dir) ) ;
16191619 let dst = dest_dir. join ( target_filename) ;
16201620 builder. copy_link ( & actual_libgccjit_path, & dst, FileType :: NativeLibrary ) ;
Original file line number Diff line number Diff line change @@ -725,7 +725,7 @@ impl Step for Libdir {
725725 if !builder. config . dry_run ( ) {
726726 // Avoid deleting the `rustlib/` directory we just copied (in `impl Step for
727727 // Sysroot`).
728- /* if !builder.download_rustc() {
728+ if !builder. download_rustc ( ) {
729729 let sysroot_target_libdir = sysroot. join ( self . target ) . join ( "lib" ) ;
730730 builder. do_if_verbose ( || {
731731 eprintln ! (
@@ -735,7 +735,7 @@ impl Step for Libdir {
735735 } ) ;
736736 let _ = fs:: remove_dir_all ( & sysroot_target_libdir) ;
737737 t ! ( fs:: create_dir_all( & sysroot_target_libdir) ) ;
738- }*/
738+ }
739739
740740 if self . compiler . stage == 0 {
741741 // The stage 0 compiler for the build triple is always pre-built. Ensure that
You can’t perform that action at this time.
0 commit comments