[clang] [lld] [lld][COFF] Add optimization remarks options to lld-link (PR #205390)
Martin Storsjö via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 8 00:13:26 PDT 2026
================
@@ -1322,6 +1306,14 @@ std::string ToolChain::GetLinkerPath(bool *LinkerIsLLD) const {
*LinkerIsLLD = UseLinker == "lld";
return LinkerPath;
}
+
+ // If ld.<name> was not found, try the name directly (e.g. lld-link).
----------------
mstorsjo wrote:
This change really sounds like its own separate change, and it's unclear to me whether this even is necessary/worthwhile. It's already possible to specify `-fuse-ld=lld`, which for the MSVC mode linking invokes `lld-link`.
This needs to be clearly split out and raised as its own Clang change - and it also needs tests.
https://github.com/llvm/llvm-project/pull/205390
More information about the cfe-commits
mailing list