[CMake] Change LTO Type in CMake 3.9 with Clang?

Breannan Smith smithbreannan at gmail.com
Fri Aug 4 00:02:27 EDT 2017


Testing the new LTO support in CMake 3.9, it appears that
setting INTERPROCEDURAL_OPTIMIZATION to TRUE causes CMake to pass
'-flto=thin' to Clang. Is it possible to instead have CMake pass
'-flto=full' (or just '-flto') to Clang?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170803/723ddc45/attachment.html>


More information about the CMake mailing list