]> git.lizzy.rs Git - rust.git/commitdiff
Split print function
authorKornel <kornel@geekhood.net>
Sun, 20 Aug 2017 20:18:49 +0000 (21:18 +0100)
committerKornel <kornel@geekhood.net>
Tue, 22 Aug 2017 20:18:42 +0000 (21:18 +0100)
src/librustc_trans/back/link.rs

index 338f3bb08aa97a5825342e84d31d9f753065e44d..a998afc2d20b1323766bfa05e8eb9e206459d37e 100644 (file)
@@ -647,11 +647,13 @@ fn link_staticlib(sess: &Session,
     ab.build();
 
     if !all_native_libs.is_empty() {
-        sess.note_without_error("link against the following native artifacts when linking against \
-                                 this static library");
-        sess.note_without_error("the order and any duplication can be significant on some \
-                                 platforms, and so may need to be preserved");
+            print_native_static_libs_legacy(sess, &all_native_libs);
     }
+}
+
+fn print_native_static_libs_legacy(sess: &Session, all_native_libs: &[NativeLibrary]) {
+    sess.note_without_error("link against the following native artifacts when linking against \
+                             this static library");
 
     for lib in all_native_libs.iter().filter(|l| relevant_lib(sess, l)) {
         let name = match lib.kind {