[all-commits] [llvm/llvm-project] ab4b5a: [clang] recognize hexagon-*-ld.lld variants (#117338)

Brian Cain via All-commits all-commits at lists.llvm.org
Mon Dec 2 23:46:16 PST 2024


  Branch: refs/heads/release/19.x
  Home:   https://github.com/llvm/llvm-project
  Commit: ab4b5a2db582958af1ee308a790cfdb42bd24720
      https://github.com/llvm/llvm-project/commit/ab4b5a2db582958af1ee308a790cfdb42bd24720
  Author: Brian Cain <bcain at quicinc.com>
  Date:   2024-12-03 (Tue, 03 Dec 2024)

  Changed paths:
    M clang/lib/Driver/ToolChains/Hexagon.cpp

  Log Message:
  -----------
  [clang] recognize hexagon-*-ld.lld variants (#117338)

If we create a cross toolchain with a ${triple}-ld.lld symlink, clang
finds that symlink and when it uses it, it's not recognized as "lld".
Let's resolve that symlink and consider it when determining lld-ness.

For example, clang provides hexagon-link specific link arguments such as
`-mcpu=hexagonv65` and `-march=hexagon` when
hexagon-unknown-linux-musl-ld.lld is found. lld rejects this with the
following error:

hexagon-unknown-linux-musl-ld.lld: error: unknown emulation:
cpu=hexagonv65

(cherry picked from commit 2dc0de753b6df83e35f3d98e0e6a26c95e3399c0)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list