Skip to content

Commit

Permalink
chromium: build on all cores
Browse files Browse the repository at this point in the history
  • Loading branch information
volth committed Oct 16, 2020
1 parent 6742cc7 commit 5742fcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
9 changes: 1 addition & 8 deletions pkgs/applications/networking/browsers/chromium/common.nix
Expand Up @@ -319,15 +319,8 @@ let
NIX_CFLAGS_COMPILE = "-Wno-unknown-warning-option";

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+1) / 2 )) -l$(( $NIX_BUILD_CORES+1 )) \
"${target}"
ninja -C "${buildPath}" "${target}"
(
source chrome/installer/linux/common/installer.include
PACKAGE=$packageName
Expand Down
Expand Up @@ -352,15 +352,8 @@ let
NIX_CFLAGS_COMPILE = "-Wno-unknown-warning-option";

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+1) / 2 )) -l$(( $NIX_BUILD_CORES+1 )) \
"${target}"
ninja -C "${buildPath}" "${target}"
(
source chrome/installer/linux/common/installer.include
PACKAGE=$packageName
Expand Down

0 comments on commit 5742fcd

Please sign in to comment.