[clang] [clang][Driver] Set *LinkerIsLLD for all LLD linker paths in GetLinkerPath (PR #236027)
Petr Hosek via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 29 11:51:37 PDT 2026
================
@@ -1075,9 +1076,8 @@ void tools::addLTOOptions(const ToolChain &ToolChain, const ArgList &Args,
Input = Inputs.begin();
}
- if (Linker != "lld" && Linker != "lld-link" &&
- llvm::sys::path::filename(LinkerPath) != "ld.lld" &&
- llvm::sys::path::stem(LinkerPath) != "ld.lld" && !Triple.isOSOpenBSD()) {
+ if (!LinkerIsLLD && Linker != "lld" && Linker != "lld-link" &&
----------------
petrhosek wrote:
`Linker != "lld" && Linker != "lld-link"` should ideally be covered by `GetLinkerPath` as well.
https://github.com/llvm/llvm-project/pull/236027
More information about the cfe-commits
mailing list