[LLVMdev] Unable to perform LLVM LTO using clang

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Dec 3 05:23:10 PST 2013


> 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



More information about the llvm-dev mailing list