HomeFreeBSD

bsd.linker.mk: Detect LLD when built with PACKAGE_VENDOR

Description

bsd.linker.mk: Detect LLD when built with PACKAGE_VENDOR

Recent versions of homebrew's LLD are built with PACKAGE_VENDOR (since
https://github.com/Homebrew/homebrew-core/commit/e7c972b6062af753e564104e58d1fa20c0d1ad7a).
This means that the -v output is now
Homebrew LLD 12.0.1 (compatible with GNU linkers) and bsd.linker.mk no
longer detects it as LLD since it only checks whether the first word is
LLD. This change allow me to build on macOS again and should unbreak the
GitHub actions CI.

Reviewed By: imp, uqs
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D31224

(cherry picked from commit f8147dad44f1036160a413bb00b4e8b41f7a4a84)

Details

Provenance
arichardsonAuthored on Jul 20 2021, 3:04 PM
Reviewer
imp
Differential Revision
D31224: bsd.linker.mk: Detect LLD when built with PACKAGE_VENDOR
Parents
rGb7440d235e5d: Don't build lldb-tablegen if MK_LLDB=no
Branches
Unknown
Tags
Unknown