[Webkit-unassigned] [Bug 235979] New: [CMake] Use ld.lld by default for development builds where available
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Feb 1 15:03:33 PST 2022
https://bugs.webkit.org/show_bug.cgi?id=235979
Bug ID: 235979
Summary: [CMake] Use ld.lld by default for development builds
where available
Product: WebKit
Version: WebKit Local Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CMake
Assignee: webkit-unassigned at lists.webkit.org
Reporter: aperez at igalia.com
One of the reasons to use ld.gold for development builds before trying
to not detect it (as per bug #235975) was that it is faster than the
traditional GNU linker, ld.bfd — and shorter build times are always
welcome by developers.
While unfortunately ld.gold is essentially unmaintained, we can still
try to use ld.lld when present. Not only it has matured plenty to be
a drop-in replacement, it is well maintained and even faster than ld.gold
As ld.lld is already part of the Flatpak SDK, the only thing missing is
to try to make CMake builds use it by default. Currently it is picked if
the LTO_MODE option is set:
# Use ld.lld when building with LTO
CMAKE_DEPENDENT_OPTION(USE_LD_LLD "Use LLD linker" ON
"LTO_MODE;NOT USE_LD_GOLD;NOT WIN32" OFF)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220201/40861047/attachment.htm>
More information about the webkit-unassigned
mailing list