optimisation: disable LTO partitioning on GCC
This dramatically decreases link times.
This commit is contained in:
parent
a4b3a217d6
commit
209adacf5a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user