Date: Sat, 13 Jun 2026 10:06:21 +0000 From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 2b619b7c7b53 - main - Merge commit 93a67259cf23 from llvm git (by ShengYi Hung): Message-ID: <6a2d2b9d.3a1a6.2bc6dd1e@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=2b619b7c7b5300cbaf59e4e9d75bc8472df014e9 commit 2b619b7c7b5300cbaf59e4e9d75bc8472df014e9 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2026-06-13 10:03:11 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2026-06-13 10:03:11 +0000 Merge commit 93a67259cf23 from llvm git (by ShengYi Hung): [ToolChains][FreeBSD] Set default Linker to LLD for FreeBSD (#190596) When the linker is specified as ld, toolchain applies special handling by invoking (triple)-ld instead of resolving ld via standard PATH lookup. This causes GNU ld installed via the system package manager to take the precedence (since (triple)-ld appears earlier in the search path), effectively overriding ld.lld. As a result, we set the default Linker on FreeBSD to ld.lld to indicate we want to use lld by default. PR: 292067 MFC after: 3 days --- contrib/llvm-project/clang/lib/Driver/ToolChains/FreeBSD.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/llvm-project/clang/lib/Driver/ToolChains/FreeBSD.h b/contrib/llvm-project/clang/lib/Driver/ToolChains/FreeBSD.h index 7d090ba682b3..60ce0bdbfc31 100644 --- a/contrib/llvm-project/clang/lib/Driver/ToolChains/FreeBSD.h +++ b/contrib/llvm-project/clang/lib/Driver/ToolChains/FreeBSD.h @@ -91,6 +91,10 @@ public: // Until dtrace (via CTF) and LLDB can deal with distributed debug info, // FreeBSD defaults to standalone/full debug info. bool GetDefaultStandaloneDebug() const override { return true; } + // On FreeBSD, `/usr/bin/ld` is `ld.lld`, but other things may be installed in + // the path named `ld` or `{triple}-ld`, which may be picked by preference if + // we default to `ld` here. + const char *getDefaultLinker() const override { return "ld.lld"; } protected: Tool *buildAssembler() const override;home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a2d2b9d.3a1a6.2bc6dd1e>
