Skip to content

Commit 278ee20

Browse files
committed
Add mention of VS 2019 in link error output.
1 parent b642d13 commit 278ee20

File tree

1 file changed

+8
-4
lines changed
  • src/librustc_codegen_ssa/back

1 file changed

+8
-4
lines changed

src/librustc_codegen_ssa/back/link.rs

+8-4
Original file line numberDiff line numberDiff line change
@@ -708,10 +708,14 @@ fn link_natively<'a, B: ArchiveBuilder<'a>>(sess: &'a Session,
708708
linker_error.emit();
709709

710710
if sess.target.target.options.is_like_msvc && linker_not_found {
711-
sess.note_without_error("the msvc targets depend on the msvc linker \
712-
but `link.exe` was not found");
713-
sess.note_without_error("please ensure that VS 2013, VS 2015 or VS 2017 \
714-
was installed with the Visual C++ option");
711+
sess.note_without_error(
712+
"the msvc targets depend on the msvc linker \
713+
but `link.exe` was not found",
714+
);
715+
sess.note_without_error(
716+
"please ensure that VS 2013, VS 2015, VS 2017 or VS 2019 \
717+
was installed with the Visual C++ option",
718+
);
715719
}
716720
sess.abort_if_errors();
717721
}

0 commit comments

Comments
 (0)