[clang] [clang][Driver] Set *LinkerIsLLD for all LLD linker paths in GetLinkerPath (PR #236027)
Roland McGrath via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 29 12:47:19 PDT 2026
================
@@ -301,11 +301,7 @@ constructHexagonLinkArgs(Compilation &C, const JobAction &JA,
bool IncStartFiles = !Args.hasArg(options::OPT_nostartfiles);
bool IncDefLibs = !Args.hasArg(options::OPT_nodefaultlibs);
bool UseLLD = false;
- const char *Exec = Args.MakeArgString(HTC.GetLinkerPath(&UseLLD));
- StringRef LinkerName = llvm::sys::path::filename(Exec);
- UseLLD = UseLLD || LinkerName.starts_with("ld.lld") ||
- LinkerName.ends_with("ld.lld") ||
- llvm::sys::path::stem(Exec).ends_with("ld.lld");
+ (void)HTC.GetLinkerPath(&UseLLD);
----------------
frobtech wrote:
Done—hoisted `HTC.GetLinkerPath(&UseLLD)` into `hexagon::Linker::ConstructJob` and passed `UseLLD` into `constructHexagonLinkArgs`.
https://github.com/llvm/llvm-project/pull/236027
More information about the cfe-commits
mailing list