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!
Posted (Dec. 19, 2010, 11:07 a.m.)
-
indra/cmake/LLCommon.cmake (Diff revision 1) -
Is this removal related to ld.gold, too, or just general cleanup?
Review request changed
Updated (Dec. 21, 2010, 7:59 a.m.)
-
- added Diff r2
Attached an incremental diff that reverts the removal of APRUTIL_INCLUDE_DIR
Other reviews