[clang] [clang] recognize any *-ld.lld variant (PR #117338)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 22 14:53:29 PST 2024


================
@@ -294,9 +294,11 @@ constructHexagonLinkArgs(Compilation &C, const JobAction &JA,
   bool IncStartFiles = !Args.hasArg(options::OPT_nostartfiles);
   bool IncDefLibs = !Args.hasArg(options::OPT_nodefaultlibs);
   bool UseG0 = false;
-  const char *Exec = Args.MakeArgString(HTC.GetLinkerPath());
-  bool UseLLD = (llvm::sys::path::filename(Exec).equals_insensitive("ld.lld") ||
-                 llvm::sys::path::stem(Exec).equals_insensitive("ld.lld"));
+  bool UseLLD = false;
+  const char *Exec = Args.MakeArgString(HTC.GetLinkerPath(&UseLLD));
----------------
MaskRay wrote:

avoid `equals_insensitive`. not needed

https://github.com/llvm/llvm-project/pull/117338


More information about the cfe-commits mailing list