Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Split print function
  • Loading branch information
kornelski committed Aug 22, 2017
commit 0314e10c3fa6918f48e797cd716f0ec934829803
10 changes: 6 additions & 4 deletions src/librustc_trans/back/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down