File tree 1 file changed +2
-2
lines changed
compiler/rustc_codegen_ssa/src
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -457,7 +457,7 @@ impl<G: EmissionGuarantee> Diagnostic<'_, G> for LinkingFailed<'_> {
457
457
diag. note ( "some arguments are omitted. use `--verbose` to show all linker arguments" ) ;
458
458
}
459
459
460
- diag. note ( self . escaped_output ) ;
460
+ diag. note ( self . escaped_output . clone ( ) ) ;
461
461
462
462
// Trying to match an error from OS linkers
463
463
// which by now we have no way to translate.
@@ -469,7 +469,7 @@ impl<G: EmissionGuarantee> Diagnostic<'_, G> for LinkingFailed<'_> {
469
469
diag. note ( fluent:: codegen_ssa_use_cargo_directive) ;
470
470
}
471
471
}
472
- if self . linker_path . display ( ) . to_string ( ) . contains ( "cc " ) {
472
+ if self . escaped_output . contains ( "unable to find library -lLLVM- " ) {
473
473
diag. help ( "consider adding the llvm-tools component to your rustup installation" ) ;
474
474
}
475
475
diag
You can’t perform that action at this time.
0 commit comments