From b75cb95c269231e4e065dccc27bcf63543550325 Mon Sep 17 00:00:00 2001 From: Nicolas Abram Date: Tue, 25 Jan 2022 20:19:43 -0300 Subject: [PATCH] Update src/doc/rustc/src/linker-plugin-lto.md Co-authored-by: Noah Lev --- src/doc/rustc/src/linker-plugin-lto.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/rustc/src/linker-plugin-lto.md b/src/doc/rustc/src/linker-plugin-lto.md index ab2613198945..941c65922d8f 100644 --- a/src/doc/rustc/src/linker-plugin-lto.md +++ b/src/doc/rustc/src/linker-plugin-lto.md @@ -86,7 +86,7 @@ option: rustc -Clinker-plugin-lto="/path/to/LLVMgold.so" -L. -Copt-level=2 ./main.rs ``` -### Usage with clang-cl and --target x86_64-pc-windows-msvc +### Usage with clang-cl and x86_64-pc-windows-msvc Cross language LTO can be used with the x86_64-pc-windows-msvc target, but this requires using the clang-cl compiler instead of the MSVC cl.exe included with Visual Studio Build Tools, and linking