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 <[email protected]> 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 > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits > >
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
