From 8d714635d04a70097be6ae43d9fbc8a79e7289f7 Mon Sep 17 00:00:00 2001 From: Charles Lew Date: Fri, 27 Nov 2020 01:12:41 +0800 Subject: [PATCH] Switch x64 windows msvc target to use `lld` by default. --- compiler/rustc_target/src/spec/x86_64_pc_windows_msvc.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_target/src/spec/x86_64_pc_windows_msvc.rs b/compiler/rustc_target/src/spec/x86_64_pc_windows_msvc.rs index 72bbb10323c31..9a7d994ab2667 100644 --- a/compiler/rustc_target/src/spec/x86_64_pc_windows_msvc.rs +++ b/compiler/rustc_target/src/spec/x86_64_pc_windows_msvc.rs @@ -5,6 +5,7 @@ pub fn target() -> Target { base.cpu = "x86-64".to_string(); base.max_atomic_width = Some(64); base.has_elf_tls = true; + base.linker = Some("rust-lld".to_string()); Target { llvm_target: "x86_64-pc-windows-msvc".to_string(),