[llvm-dev] CMake option to disable LTO?
Rafael EspĂndola via llvm-dev
llvm-dev at lists.llvm.org
Tue Jan 26 04:42:37 PST 2016
On 25 January 2016 at 09:19, Duncan P. N. Exon Smith via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> I think it'd be a bug if you got LTO by default with a debug build.
> What platform are you on? What cmake command did you use when
> configuring?
It is probably just an oddity of building with current gcc:
--------------------------------
gcc test.o -o test.so -shared -Wl,-debug
.....
usr/bin/ld -plugin
/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/liblto_plugin.so...
----------------------------
It always passes the plugin options to ld, even when not doing LTO.
Cheers,
Rafael
More information about the llvm-dev
mailing list