[cooker] Use Thin LTO

Hi,

what do you think to start to use by default -flto=thin ?
We may benefit from using thiner LTO objects.

More info can be found here:
https://clang.llvm.org/docs/ThinLTO.html

Hi Tomek,
This looks quite interesting as although ThinLto reults in some slower executables this slight disadvantage is balanced out by significant improvements in build time and memory consumption. With the prospect of further optimisation in later releases it could be worthwhile choice assuming there are no unseen gotcha's.
Best,
Colin

Any news on this?

Have you discussed that idea?

napisał: