File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
compiler/rustc_codegen_gcc/src Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ use rustc_middle::ty::TyCtxt;
9898use rustc_middle:: util:: Providers ;
9999use rustc_session:: Session ;
100100use rustc_session:: config:: { OptLevel , OutputFilenames } ;
101+ use rustc_session:: filesearch:: make_target_lib_path;
101102use rustc_span:: Symbol ;
102103use rustc_target:: spec:: { Arch , RelocModel } ;
103104use tempfile:: TempDir ;
@@ -182,9 +183,7 @@ pub struct GccCodegenBackend {
182183static LTO_SUPPORTED : AtomicBool = AtomicBool :: new ( false ) ;
183184
184185fn libgccjit_path ( sysroot_path : & Path , target_triple : & str ) -> PathBuf {
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" ) ;
186+ make_target_lib_path ( sysroot_path, target_triple) . join ( "libgccjit.so" )
188187}
189188
190189fn load_libgccjit_if_needed ( sysroot_path : & Path , target_triple : & str ) {
You can’t perform that action at this time.
0 commit comments