File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
compiler/rustc_codegen_gcc/src
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -186,8 +186,9 @@ fn load_libgccjit_if_needed(sysroot_path: &Path, target_triple: &str) {
186186 return ;
187187 }
188188
189- let sysroot_lib_dir = sysroot_path. join ( "lib" ) ;
190- let libgccjit_target_lib_file = sysroot_lib_dir. join ( target_triple) . join ( "libgccjit.so" ) ;
189+ let sysroot_lib_dir = sysroot_path. join ( "lib" ) . join ( "rustlib" ) ;
190+ let libgccjit_target_lib_file =
191+ sysroot_lib_dir. join ( target_triple) . join ( "lib" ) . join ( "libgccjit.so" ) ;
191192 let path = libgccjit_target_lib_file. to_str ( ) . expect ( "libgccjit path" ) ;
192193
193194 let string = CString :: new ( path) . expect ( "string to libgccjit path" ) ;
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ impl GccOutput {
4747 format!( "Cannot find libgccjit at {}" , self . libgccjit. display( ) )
4848 ) ;
4949
50- let dest_dir = directory. join ( self . target ) ;
50+ let dest_dir = directory. join ( "rustlib" ) . join ( self . target ) . join ( "lib" ) ;
5151 t ! ( fs:: create_dir_all( & dest_dir) ) ;
5252 let dst = dest_dir. join ( target_filename) ;
5353 builder. copy_link ( & actual_libgccjit_path, & dst, FileType :: NativeLibrary ) ;
You can’t perform that action at this time.
0 commit comments