We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 7b6251b commit 0175612Copy full SHA for 0175612
pkgs/applications/networking/browsers/chromium/common.nix
@@ -228,9 +228,14 @@ let
228
'';
229
230
buildPhase = let
231
+ # Build paralelism: on Hydra the build was frequently running into memory
232
+ # exhaustion, and even other users might be running into similar issues.
233
+ # -j is halved to avoid memory problems, and -l is slightly increased
234
+ # so that the build gets slight preference before others
235
+ # (it will often be on "critical path" and at risk of timing out)
236
buildCommand = target: ''
237
ninja -C "${buildPath}" \
- -j$NIX_BUILD_CORES -l$NIX_BUILD_CORES \
238
+ -j$(( ($NIX_BUILD_CORES+1) / 2 )) -l$(( $NIX_BUILD_CORES+1 )) \
239
"${target}"
240
'' + optionalString (target == "mksnapshot" || target == "chrome") ''
241
paxmark m "${buildPath}/${target}"
0 commit comments