Skip to content

Commit e7d4f43

Browse files
committed
Suggest to add llvm-tools while failing link with cc
Signed-off-by: xizheyin <[email protected]>
1 parent 81d8edc commit e7d4f43

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_codegen_ssa/src/errors.rs

+3
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,9 @@ impl<G: EmissionGuarantee> Diagnostic<'_, G> for LinkingFailed<'_> {
469469
diag.note(fluent::codegen_ssa_use_cargo_directive);
470470
}
471471
}
472+
if self.linker_path.display().to_string().contains("cc") {
473+
diag.help("consider adding the llvm-tools component to your rustup installation");
474+
}
472475
diag
473476
}
474477
}

0 commit comments

Comments
 (0)