@@ -323,6 +323,7 @@ fn link_rlib<'a, B: ArchiveBuilder<'a>>(sess: &'a Session,
323
323
NativeLibraryKind :: NativeStatic => { }
324
324
NativeLibraryKind :: NativeStaticNobundle |
325
325
NativeLibraryKind :: NativeFramework |
326
+ NativeLibraryKind :: NativeRawDylib |
326
327
NativeLibraryKind :: NativeUnknown => continue ,
327
328
}
328
329
if let Some ( name) = lib. name {
@@ -883,7 +884,8 @@ pub fn print_native_static_libs(sess: &Session, all_native_libs: &[NativeLibrary
883
884
Some ( format ! ( "-framework {}" , name) )
884
885
} ,
885
886
// These are included, no need to print them
886
- NativeLibraryKind :: NativeStatic => None ,
887
+ NativeLibraryKind :: NativeStatic |
888
+ NativeLibraryKind :: NativeRawDylib => None ,
887
889
}
888
890
} )
889
891
. collect ( ) ;
@@ -1293,7 +1295,11 @@ pub fn add_local_native_libraries(cmd: &mut dyn Linker,
1293
1295
NativeLibraryKind :: NativeUnknown => cmd. link_dylib ( name) ,
1294
1296
NativeLibraryKind :: NativeFramework => cmd. link_framework ( name) ,
1295
1297
NativeLibraryKind :: NativeStaticNobundle => cmd. link_staticlib ( name) ,
1296
- NativeLibraryKind :: NativeStatic => cmd. link_whole_staticlib ( name, & search_path)
1298
+ NativeLibraryKind :: NativeStatic => cmd. link_whole_staticlib ( name, & search_path) ,
1299
+ NativeLibraryKind :: NativeRawDylib => {
1300
+ // FIXME(#58713): Proper handling for raw dylibs.
1301
+ bug ! ( "raw_dylib feature not yet implemented" ) ;
1302
+ } ,
1297
1303
}
1298
1304
}
1299
1305
}
@@ -1678,7 +1684,11 @@ pub fn add_upstream_native_libraries(
1678
1684
// ignore statically included native libraries here as we've
1679
1685
// already included them when we included the rust library
1680
1686
// previously
1681
- NativeLibraryKind :: NativeStatic => { }
1687
+ NativeLibraryKind :: NativeStatic => { } ,
1688
+ NativeLibraryKind :: NativeRawDylib => {
1689
+ // FIXME(#58713): Proper handling for raw dylibs.
1690
+ bug ! ( "raw_dylib feature not yet implemented" ) ;
1691
+ } ,
1682
1692
}
1683
1693
}
1684
1694
}
0 commit comments