about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/back
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2022-12-28 17:24:10 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2022-12-28 17:56:31 +0000
commit0b54782cc8261f8e5d6e0b23785ca259a9eef6bf (patch)
tree59f4a545cec339585e48530f3afce71745d73186 /compiler/rustc_codegen_ssa/src/back
parent6a20f7df5755d8c6b68110d2d0391a7b03268e77 (diff)
downloadrust-0b54782cc8261f8e5d6e0b23785ca259a9eef6bf.tar.gz
rust-0b54782cc8261f8e5d6e0b23785ca259a9eef6bf.zip
Don't translate --print native-static-libs output
This breaks tools that depend on the prefix
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back')
-rw-r--r--compiler/rustc_codegen_ssa/src/back/link.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/link.rs b/compiler/rustc_codegen_ssa/src/back/link.rs
index edde1537b81..1fbccfd96cf 100644
--- a/compiler/rustc_codegen_ssa/src/back/link.rs
+++ b/compiler/rustc_codegen_ssa/src/back/link.rs
@@ -1354,7 +1354,8 @@ fn print_native_static_libs(sess: &Session, all_native_libs: &[NativeLib]) {
     if !lib_args.is_empty() {
         sess.emit_note(errors::StaticLibraryNativeArtifacts);
         // Prefix for greppability
-        sess.emit_note(errors::NativeStaticLibs { arguments: lib_args.join(" ") });
+        // Note: This must not be translated as tools are allowed to depend on this exact string.
+        sess.note_without_error(&format!("native-static-libs: {}", &lib_args.join(" ")));
     }
 }