Don't translate --print native-static-libs output

This breaks tools that depend on the prefix
This commit is contained in:
bjorn3 2022-12-28 17:24:10 +00:00
parent 6a20f7df57
commit 0b54782cc8
3 changed files with 2 additions and 9 deletions

View file

@ -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(" ")));
}
}