I normally do clang LTO builds without changing its makefile (or
ninja.build). Just use http://llvm.org/docs/GoldPlugin.html
On 26 November 2013 14:08, reed kotler <rkotler at mips.com>
wrote:> I think it would be interesting to have a compiler option to add the bit
> code to the .s or .o file in some kind
> of a non linkable section.
>
> This would give you the option at link time of doing lto without having to
> change make files, etc.
>
> The driver would need to have some kind of prelink step to extract the
> bitcode in the case of lto.
>
> Just a thought...
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev