@@ -503,31 +503,10 @@ fn link_staticlib(sess: &Session,
503503 if !all_native_libs. is_empty ( ) {
504504 if sess. opts . prints . contains ( & PrintRequest :: NativeStaticLibs ) {
505505 print_native_static_libs ( sess, & all_native_libs) ;
506- } else {
507- // Fallback for backwards compatibility only
508- print_native_static_libs_legacy ( sess, & all_native_libs) ;
509506 }
510507 }
511508}
512509
513- fn print_native_static_libs_legacy ( sess : & Session , all_native_libs : & [ NativeLibrary ] ) {
514- sess. note_without_error ( "link against the following native artifacts when linking against \
515- this static library") ;
516- sess. note_without_error ( "This list will not be printed by default. \
517- Please add --print=native-static-libs if you need this information") ;
518-
519- for lib in all_native_libs. iter ( ) . filter ( |l| relevant_lib ( sess, l) ) {
520- let name = match lib. kind {
521- NativeLibraryKind :: NativeStaticNobundle |
522- NativeLibraryKind :: NativeUnknown => "library" ,
523- NativeLibraryKind :: NativeFramework => "framework" ,
524- // These are included, no need to print them
525- NativeLibraryKind :: NativeStatic => continue ,
526- } ;
527- sess. note_without_error ( & format ! ( "{}: {}" , name, lib. name) ) ;
528- }
529- }
530-
531510fn print_native_static_libs ( sess : & Session , all_native_libs : & [ NativeLibrary ] ) {
532511 let lib_args: Vec < _ > = all_native_libs. iter ( )
533512 . filter ( |l| relevant_lib ( sess, l) )
0 commit comments