Merge #100713: chromium: build on all cores
This commit is contained in:
commit
65d6adcf3e
@ -319,15 +319,8 @@ let
|
|||||||
NIX_CFLAGS_COMPILE = "-Wno-unknown-warning-option";
|
NIX_CFLAGS_COMPILE = "-Wno-unknown-warning-option";
|
||||||
|
|
||||||
buildPhase = 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: ''
|
buildCommand = target: ''
|
||||||
ninja -C "${buildPath}" \
|
ninja -C "${buildPath}" -j$NIX_BUILD_CORES -l$NIX_BUILD_CORES "${target}"
|
||||||
-j$(( ($NIX_BUILD_CORES+1) / 2 )) -l$(( $NIX_BUILD_CORES+1 )) \
|
|
||||||
"${target}"
|
|
||||||
(
|
(
|
||||||
source chrome/installer/linux/common/installer.include
|
source chrome/installer/linux/common/installer.include
|
||||||
PACKAGE=$packageName
|
PACKAGE=$packageName
|
||||||
|
@ -352,15 +352,8 @@ let
|
|||||||
NIX_CFLAGS_COMPILE = "-Wno-unknown-warning-option";
|
NIX_CFLAGS_COMPILE = "-Wno-unknown-warning-option";
|
||||||
|
|
||||||
buildPhase = 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: ''
|
buildCommand = target: ''
|
||||||
ninja -C "${buildPath}" \
|
ninja -C "${buildPath}" -j$NIX_BUILD_CORES -l$NIX_BUILD_CORES "${target}"
|
||||||
-j$(( ($NIX_BUILD_CORES+1) / 2 )) -l$(( $NIX_BUILD_CORES+1 )) \
|
|
||||||
"${target}"
|
|
||||||
(
|
(
|
||||||
source chrome/installer/linux/common/installer.include
|
source chrome/installer/linux/common/installer.include
|
||||||
PACKAGE=$packageName
|
PACKAGE=$packageName
|
||||||
|
Loading…
x
Reference in New Issue
Block a user