about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKornel <kornel@geekhood.net>2017-08-20 21:18:49 +0100
committerKornel <kornel@geekhood.net>2017-08-22 21:18:42 +0100
commit0314e10c3fa6918f48e797cd716f0ec934829803 (patch)
treeef0e875989632af80adfad872e8a8cf85828eb54
parenta24e0f25d7a0ac793b37eb4db353d5f9f2befc97 (diff)
Split print function
-rw-r--r--src/librustc_trans/back/link.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/librustc_trans/back/link.rs b/src/librustc_trans/back/link.rs
index 338f3bb08aa..a998afc2d20 100644
--- a/src/librustc_trans/back/link.rs
+++ b/src/librustc_trans/back/link.rs
@@ -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 {