[cfe-commits] Patch to support gold on FreeBSD

Chandler Carruth chandlerc at google.com
Tue Jul 31 01:10:04 PDT 2012


Cool.

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
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120731/2d6acaf4/attachment.html>


More information about the cfe-commits mailing list