chromium: build on all cores

(cherry picked from commit 5742fcdfa9)
This commit is contained in:
volth
2020-10-16 11:22:28 +00:00
committed by Michael Weiss
parent 616c488ccf
commit aeba7458eb
2 changed files with 2 additions and 16 deletions

View File

@@ -313,15 +313,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

View File

@@ -350,15 +350,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