Thanks,
-steve
_______________________________________________
LLVM Developers mailing list
llvm...@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
There is no option (that I know of) to enable/disable LTO (it shouldn’t be enabled) other than setting it explicitly in the CMAKE_C_FLAG/CMAKE_CXX_FLAG.
Are you sure LTO is enabled? What it the value of CMAKE_C_FLAG/CMAKE_CXX_FLAG in your CMakeCache.txt?
—
Mehdi
Thanks Mehdi, I think I'm mistaken about LTO. During linking, my gcc
5.3 loads liblto_plugin.so and lto_wrapper and so on, but I don't see
the -flto option to actually enable it. Must be something else
clogging my build.
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