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 @@ -182,8 +182,9 @@ pub struct GccCodegenBackend {
182182static LTO_SUPPORTED : AtomicBool = AtomicBool :: new ( false ) ;
183183
184184fn libgccjit_path ( sysroot_path : & Path , target_triple : & str ) -> PathBuf {
185- let sysroot_lib_dir = sysroot_path. join ( "lib" ) ;
186- sysroot_lib_dir. join ( target_triple) . join ( "libgccjit.so" )
185+ let sysroot_lib_dir = sysroot_path. join ( "lib" ) . join ( "rustlib" ) ;
186+ let libgccjit_target_lib_file =
187+ sysroot_lib_dir. join ( target_triple) . join ( "lib" ) . join ( "libgccjit.so" ) ;
187188}
188189
189190fn load_libgccjit_if_needed ( sysroot_path : & Path , target_triple : & str ) {
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