@@ -323,6 +323,7 @@ fn link_rlib<'a, B: ArchiveBuilder<'a>>(sess: &'a Session,
323323 NativeLibraryKind :: NativeStatic => { }
324324 NativeLibraryKind :: NativeStaticNobundle |
325325 NativeLibraryKind :: NativeFramework |
326+ NativeLibraryKind :: NativeRawDylib |
326327 NativeLibraryKind :: NativeUnknown => continue ,
327328 }
328329 if let Some ( name) = lib. name {
@@ -883,7 +884,8 @@ pub fn print_native_static_libs(sess: &Session, all_native_libs: &[NativeLibrary
883884 Some ( format ! ( "-framework {}" , name) )
884885 } ,
885886 // These are included, no need to print them
886- NativeLibraryKind :: NativeStatic => None ,
887+ NativeLibraryKind :: NativeStatic |
888+ NativeLibraryKind :: NativeRawDylib => None ,
887889 }
888890 } )
889891 . collect ( ) ;
@@ -1293,7 +1295,11 @@ pub fn add_local_native_libraries(cmd: &mut dyn Linker,
12931295 NativeLibraryKind :: NativeUnknown => cmd. link_dylib ( name) ,
12941296 NativeLibraryKind :: NativeFramework => cmd. link_framework ( name) ,
12951297 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+ } ,
12971303 }
12981304 }
12991305}
@@ -1678,7 +1684,11 @@ pub fn add_upstream_native_libraries(
16781684 // ignore statically included native libraries here as we've
16791685 // already included them when we included the rust library
16801686 // 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+ } ,
16821692 }
16831693 }
16841694 }
0 commit comments