Skip to content

Commit

Permalink
chromium: try to hack around Hydra problems
Browse files Browse the repository at this point in the history
Discussion: e8f1ddcbd1d
  • Loading branch information
vcunat committed Sep 1, 2017
1 parent 7b6251b commit 0175612
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkgs/applications/networking/browsers/chromium/common.nix
Expand Up @@ -228,9 +228,14 @@ let
'';

buildPhase = let
# Build paralelism: on Hydra the build was frequently running into memory
# exhaustion, and even other users might be running into similar issues.
# -j is halved to avoid memory problems, and -l is slightly increased
# so that the build gets slight preference before others
# (it will often be on "critical path" and at risk of timing out)
buildCommand = target: ''
ninja -C "${buildPath}" \
-j$NIX_BUILD_CORES -l$NIX_BUILD_CORES \
-j$(( ($NIX_BUILD_CORES+1) / 2 )) -l$(( $NIX_BUILD_CORES+1 )) \
"${target}"
'' + optionalString (target == "mksnapshot" || target == "chrome") ''
paxmark m "${buildPath}/${target}"
Expand Down

0 comments on commit 0175612

Please sign in to comment.