All submissions to this site are governed by the Second Life Viewer Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.

Review Board 1.6.11

Welcome to the Second Life Viewer Code Review tool.
See the documentation on our wiki for how to use this site.

VWR-24254: Add support for using ld.gold on linux.

Review Request #48 - Created Dec. 19, 2010 and submitted

Aleric Inglewood Reviewers
viewer
VWR-24254
None viewer-development
To use ld.gold configure with:
  -DCMAKE_EXE_LINKER_FLAGS:STRING="-Wl,-use-gold".

See VWR-24254 for more details.
ld.gold links the viewer on my machine in 8 seconds, as
opposed to 19 seconds with ld.bfd. Moreover, it uses a
LOT less memory during linking (about 750 MB instead of
2.5 GB! (for viewer 1)).

Since my machine locked up hard when I run out of memory
(something with using an encrypted RAID for my swap),
and compiling viewer 2 uses more than 3 GB, I couldn't
compile viewer 2 at all anymore without this patch (and
using ld.gold). And OMG this is fast!
Review request changed
Updated (Dec. 21, 2010, 7:59 a.m.)
Attached an incremental diff that reverts the removal of APRUTIL_INCLUDE_DIR
Ship it!
Posted (Dec. 21, 2010, 10:21 a.m.)
I haven't tried building on LINUX (I recommend whoever does the integration to run a TC build on a test repo for safety before merging in lindenlab/viewer-development) but everything seems sound to me. Ship it!