optimisation: try to enable multi-threaded LTO

This commit is contained in:
Danny Robson 2020-10-19 07:46:42 +10:00
parent 67bee65f76
commit 93d09dc0dc

View File

@ -32,6 +32,7 @@ if (LTO)
# situations where we may accidentally use regular/fat objects. # situations where we may accidentally use regular/fat objects.
append_compile_flag("-flto") append_compile_flag("-flto")
append_compile_flag("-fno-fat-lto-objects") append_compile_flag("-fno-fat-lto-objects")
append_compile_flag("-flto-jobs=0")
# Try to squeeze out some more diagnostics via LTO # Try to squeeze out some more diagnostics via LTO
append_compile_flag("-flto-odr-type-merging") append_compile_flag("-flto-odr-type-merging")