We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acf4842 commit 94e6b95Copy full SHA for 94e6b95
compiler/rustc_codegen_ssa/src/back/link.rs
@@ -1021,12 +1021,9 @@ 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.opts.target.arch, "link.exe")
+ .is_some();
1030
1031
sess.dcx().emit_note(errors::LinkExeUnexpectedError);
1032
if is_vs_installed && has_linker {
0 commit comments