@@ -314,6 +314,7 @@ fn link_rlib<'a, B: ArchiveBuilder<'a>>(sess: &'a Session,
314
314
NativeLibraryKind :: NativeStatic => { }
315
315
NativeLibraryKind :: NativeStaticNobundle |
316
316
NativeLibraryKind :: NativeFramework |
317
+ NativeLibraryKind :: NativeRawDylib |
317
318
NativeLibraryKind :: NativeUnknown => continue ,
318
319
}
319
320
if let Some ( name) = lib. name {
@@ -874,7 +875,8 @@ pub fn print_native_static_libs(sess: &Session, all_native_libs: &[NativeLibrary
874
875
Some ( format ! ( "-framework {}" , name) )
875
876
} ,
876
877
// These are included, no need to print them
877
- NativeLibraryKind :: NativeStatic => None ,
878
+ NativeLibraryKind :: NativeStatic |
879
+ NativeLibraryKind :: NativeRawDylib => None ,
878
880
}
879
881
} )
880
882
. collect ( ) ;
@@ -1284,7 +1286,11 @@ pub fn add_local_native_libraries(cmd: &mut dyn Linker,
1284
1286
NativeLibraryKind :: NativeUnknown => cmd. link_dylib ( name) ,
1285
1287
NativeLibraryKind :: NativeFramework => cmd. link_framework ( name) ,
1286
1288
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
+ } ,
1288
1294
}
1289
1295
}
1290
1296
}
@@ -1661,7 +1667,11 @@ pub fn add_upstream_native_libraries(cmd: &mut dyn Linker,
1661
1667
// ignore statically included native libraries here as we've
1662
1668
// already included them when we included the rust library
1663
1669
// 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
+ } ,
1665
1675
}
1666
1676
}
1667
1677
}
0 commit comments