[LLVMdev] Unable to perform LLVM LTO using clang

Chunbai YANG chunbyang2 at gapps.cityu.edu.hk
Thu Dec 5 04:46:59 PST 2013


Dear Rafael,

Thank you for your answer. The verbose mode -v shows that clang uses the
old ld in /usr/bin while I install the gold in /usr/local/bin.

Regards,
Chunbai


On Tue, Dec 3, 2013 at 9:23 PM, Rafael EspĂ­ndola <rafael.espindola at gmail.com
> wrote:

> > Could anyone tell me where my mistake is?
>
> Try running
>
> clang -flto a.o b.o -o main -v
>
> it should print how clang is running the linker. See if it is running
> the linker you expect and if it is passing -plugin to it.
>
> Cheers,
> Rafael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131205/eadabd72/attachment.html>


More information about the llvm-dev mailing list