LTO/IPO customization
Need to find the way to allow users to customize LTO features.
Based on this comment:
GCC
From documentation:
-
-flto=n
-
-flto-partition=alg
-
-flto-odr-type-merging
-
-flto-compression-level=n
-
-ffat-lto-objects
(currently using -fno-fat-lto-objects)
Clang
Xcode
-
CMAKE_XCODE_ATTRIBUTE_LLVM_LTO
YES_THIN
(since Xcode 8.0)