optimisation: disable LTO partitioning on GCC

This dramatically decreases link times.
This commit is contained in:
Danny Robson 2020-10-21 06:08:20 +10:00
parent a4b3a217d6
commit 209adacf5a

View File

@ -38,7 +38,9 @@ if (LTO)
append_compile_flag("-flto-odr-type-merging")
# GCC: Attempt to use a more aggressive whole-program style of LTO
append_compile_flag("-flto-partition=none")
# NOTE: It's unclear if this _actually_ buys us performance or if it just
# slows down linking (by a substantial factor).
#append_compile_flag("-flto-partition=none")
# Throw in some optimisation flags that are LTO specific. We don't
# particularly care about checking Debug/Release here because LTO is