@@ -314,6 +314,7 @@ fn link_rlib<'a, B: ArchiveBuilder<'a>>(sess: &'a Session,
314314 NativeLibraryKind :: NativeStatic => { }
315315 NativeLibraryKind :: NativeStaticNobundle |
316316 NativeLibraryKind :: NativeFramework |
317+ NativeLibraryKind :: NativeRawDylib |
317318 NativeLibraryKind :: NativeUnknown => continue ,
318319 }
319320 if let Some ( name) = lib. name {
@@ -874,7 +875,8 @@ pub fn print_native_static_libs(sess: &Session, all_native_libs: &[NativeLibrary
874875 Some ( format ! ( "-framework {}" , name) )
875876 } ,
876877 // These are included, no need to print them
877- NativeLibraryKind :: NativeStatic => None ,
878+ NativeLibraryKind :: NativeStatic |
879+ NativeLibraryKind :: NativeRawDylib => None ,
878880 }
879881 } )
880882 . collect ( ) ;
@@ -1284,7 +1286,11 @@ pub fn add_local_native_libraries(cmd: &mut dyn Linker,
12841286 NativeLibraryKind :: NativeUnknown => cmd. link_dylib ( name) ,
12851287 NativeLibraryKind :: NativeFramework => cmd. link_framework ( name) ,
12861288 NativeLibraryKind :: NativeStaticNobundle => cmd. link_staticlib ( name) ,
1287- NativeLibraryKind :: NativeStatic => cmd. link_whole_staticlib ( name, & search_path)
1289+ NativeLibraryKind :: NativeStatic => cmd. link_whole_staticlib ( name, & search_path) ,
1290+ NativeLibraryKind :: NativeRawDylib => {
1291+ // FIXME(#58713): Proper handling for raw dylibs.
1292+ bug ! ( "raw_dylib feature not yet implemented" ) ;
1293+ } ,
12881294 }
12891295 }
12901296}
@@ -1661,7 +1667,11 @@ pub fn add_upstream_native_libraries(cmd: &mut dyn Linker,
16611667 // ignore statically included native libraries here as we've
16621668 // already included them when we included the rust library
16631669 // previously
1664- NativeLibraryKind :: NativeStatic => { }
1670+ NativeLibraryKind :: NativeStatic => { } ,
1671+ NativeLibraryKind :: NativeRawDylib => {
1672+ // FIXME(#58713): Proper handling for raw dylibs.
1673+ bug ! ( "raw_dylib feature not yet implemented" ) ;
1674+ } ,
16651675 }
16661676 }
16671677 }
0 commit comments