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")