From 93d09dc0dcf90289a2366649894c4ff58acc638b Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 19 Oct 2020 07:46:42 +1000 Subject: [PATCH] optimisation: try to enable multi-threaded LTO --- nc_optimisation.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/nc_optimisation.cmake b/nc_optimisation.cmake index 704dce9..a8dd1c4 100644 --- a/nc_optimisation.cmake +++ b/nc_optimisation.cmake @@ -32,6 +32,7 @@ if (LTO) # situations where we may accidentally use regular/fat objects. append_compile_flag("-flto") append_compile_flag("-fno-fat-lto-objects") + append_compile_flag("-flto-jobs=0") # Try to squeeze out some more diagnostics via LTO append_compile_flag("-flto-odr-type-merging")