about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorRémy Rakic <remy.rakic+github@gmail.com>2023-08-10 20:36:25 +0000
committerRémy Rakic <remy.rakic+github@gmail.com>2023-08-10 20:36:25 +0000
commit498d6562c3fc4e9261efe2e8188fb45c64532eef (patch)
treea0b5810de73a2546e2ebc025aa0c83b4f6cdd0ba /compiler
parent99c1bcfac500bc5bf1cc5992dca4f918540de556 (diff)
downloadrust-498d6562c3fc4e9261efe2e8188fb45c64532eef.tar.gz
rust-498d6562c3fc4e9261efe2e8188fb45c64532eef.zip
infer no use of lld when using a generic linker driver
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_target/src/spec/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_target/src/spec/mod.rs b/compiler/rustc_target/src/spec/mod.rs
index 1871239d7de..4aa6f1f98a2 100644
--- a/compiler/rustc_target/src/spec/mod.rs
+++ b/compiler/rustc_target/src/spec/mod.rs
@@ -338,7 +338,7 @@ impl LinkerFlavor {
             || stem == "clang++"
             || stem.ends_with("-clang++")
         {
-            (Some(Cc::Yes), None)
+            (Some(Cc::Yes), Some(Lld::No))
         } else if stem == "wasm-ld"
             || stem.ends_with("-wasm-ld")
             || stem == "ld.lld"