File tree 1 file changed +3
-3
lines changed
compiler/rustc_codegen_ssa/src/back
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1643,9 +1643,9 @@ impl<'a> Linker for AixLinker<'a> {
1643
1643
}
1644
1644
}
1645
1645
1646
- fn link_dylib_by_name ( & mut self , name : & str , _verbatim : bool , _as_needed : bool ) {
1646
+ fn link_dylib_by_name ( & mut self , name : & str , verbatim : bool , _as_needed : bool ) {
1647
1647
self . hint_dynamic ( ) ;
1648
- self . link_or_cc_arg ( format ! ( "-l{name}" ) ) ;
1648
+ self . link_or_cc_arg ( if verbatim { String :: from ( name ) } else { format ! ( "-l{name}" ) } ) ;
1649
1649
}
1650
1650
1651
1651
fn link_dylib_by_path ( & mut self , path : & Path , _as_needed : bool ) {
@@ -1656,7 +1656,7 @@ impl<'a> Linker for AixLinker<'a> {
1656
1656
fn link_staticlib_by_name ( & mut self , name : & str , verbatim : bool , whole_archive : bool ) {
1657
1657
self . hint_static ( ) ;
1658
1658
if !whole_archive {
1659
- self . link_or_cc_arg ( format ! ( "-l{name}" ) ) ;
1659
+ self . link_or_cc_arg ( if verbatim { String :: from ( name ) } else { format ! ( "-l{name}" ) } ) ;
1660
1660
} else {
1661
1661
let mut arg = OsString :: from ( "-bkeepfile:" ) ;
1662
1662
arg. push ( find_native_static_library ( name, verbatim, self . sess ) ) ;
You can’t perform that action at this time.
0 commit comments