[SERVER-43979] Prefer lld when available Created: 12/Oct/19  Updated: 29/Oct/23  Resolved: 14/Oct/19

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 4.3.1

Type: Improvement Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Andrew Morrow (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Dev Tools 2019-10-21
Participants:

 Description   

The clang lld linker is faster than even ld.gold. When the compiler supports -fuse-ld=lld we should prefer to use lld.

This won't have much of an effect with our waterfall builds because the toolchain v3 version of GCC doesn't support --fuse-ld=lld. But the toolchain clang does, so this will speed up any clang builds we do (like ASAN). It will also speed up local developer builds for developers who are using clang, or using a system GCC new enough to support the flag.



 Comments   
Comment by Githook User [ 14/Oct/19 ]

Author:

{'email': 'andrew.morrow@10gen.com', 'name': 'Andrew Morrow'}

Message: SERVER-43979 Prefer lld when available
Branch: master
https://github.com/mongodb/mongo/commit/edf4ab0f81741a3788e17d2a1009ea935ef639c2

Generated at Thu Feb 08 05:04:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.