[Optimizations] Work-aroud issue with way too many processes started in LTO stages with some build systems

This commit is contained in:
Antoine Viallon 2023-03-17 00:28:32 +01:00
parent fab3337f07
commit 3d766db870
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -15,11 +15,12 @@ let
cpuArch ? generalCfg.cpuArch , cpuArch ? generalCfg.cpuArch ,
cpuTune ? generalCfg.cpuTune , cpuTune ? generalCfg.cpuTune ,
extraCFlags ? cfg.extraCompileFlags , extraCFlags ? cfg.extraCompileFlags ,
cpuCores ? generalCfg.cores ,
... ...
}@attrs: }@attrs:
_trace ( _trace (
(myLib.optimizations.makeOptimizationFlags ({ (myLib.optimizations.makeOptimizationFlags ({
inherit lto go cpuArch cpuTune extraCFlags; inherit lto go cpuArch cpuTune extraCFlags cpuCores;
} // attrs)) } // attrs))
// (optionalAttrs cmake { // (optionalAttrs cmake {
preConfigure = '' preConfigure = ''