infer no use of lld when using a generic linker driver

This commit is contained in:
Rémy Rakic
2023-08-10 20:36:25 +00:00
parent 99c1bcfac5
commit 498d6562c3
+1 -1
View File
@@ -338,7 +338,7 @@ fn infer_linker_hints(linker_stem: &str) -> (Option<Cc>, Option<Lld>) {
|| 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"