Skip to content

Commit 419ceb4

Browse files
authored
Cap parallelism of dependency building (#2014)
When building the third party dependencies, we use the nproc command to try and get as many parallel builds as possible running at once. This can bring problems on systems with large numbers of cores and not enough ram to come with them, so for those we provide the option of manually setting the number of parallel builds with an environment variable.
1 parent f287cf5 commit 419ceb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/install/install-dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export LICENSE_DIR="/THIRD_PARTY_NOTICES"
77
mkdir -p "${LICENSE_DIR}"
88

99
export NPROCS
10-
NPROCS="$(nproc)"
10+
NPROCS="${NPROCS:-$(nproc)}"
1111

1212
# shellcheck source=SCRIPTDIR/versions.sh
1313
source builder/install/versions.sh

0 commit comments

Comments
 (0)