We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acf4842 commit 5477d85Copy full SHA for 5477d85
compiler/rustc_codegen_ssa/src/back/link.rs
@@ -1021,12 +1021,8 @@ fn link_natively(
1021
&& (code < 1000 || code > 9999)
1022
{
1023
let is_vs_installed = windows_registry::find_vs_version().is_ok();
1024
- // FIXME(cc-rs#1265) pass only target arch to find_tool()
1025
- let has_linker = windows_registry::find_tool(
1026
- sess.opts.target_triple.tuple(),
1027
- "link.exe",
1028
- )
1029
- .is_some();
+ let has_linker =
+ windows_registry::find_tool(&sess.target.arch, "link.exe").is_some();
1030
1031
sess.dcx().emit_note(errors::LinkExeUnexpectedError);
1032
if is_vs_installed && has_linker {
0 commit comments