[cfe-commits] Patch to support gold on FreeBSD
chandlerc at google.com
Tue Jul 31 01:10:04 PDT 2012
First, this needs a test in the 'test/Driver/...' tree. Likely with other
BSD 'ld' invocation tests. There are lots of examples to crib from, in
particular the Linux ones.
Second, can we factor out the logic to add the actual plugin flag? It
should already exist somewhere for Linux?
On Tue, Jul 31, 2012 at 1:06 AM, Stephen Checkoway <s at pahtak.org> wrote:
> devel/binutils in FreeBSD's ports builds gold which it installs as
> /usr/local/bin/ld.gold. The attached patch enables LTO on FreeBSD in a
> manner similar to Linux. Namely, it passes -plugin /path/to/LLVMgold.so to
> the linker.
> In addition, if gold has been specified, it uses ld.gold, rather than ld.
> I'm not sure if that part is appropriate or not since nothing else switches
> linkers based on LTO.
> Stephen Checkoway
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-commits