Skip to content

Commit

Permalink
Cap parallelism of dependency building
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Molter73 committed Jan 21, 2025
1 parent fb2d253 commit dca4149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder/install/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export LICENSE_DIR="/THIRD_PARTY_NOTICES"
mkdir -p "${LICENSE_DIR}"

export NPROCS
NPROCS="$(nproc)"
NPROCS="${NPROCS:-$(nproc)}"

# shellcheck source=SCRIPTDIR/versions.sh
source builder/install/versions.sh
Expand Down

0 comments on commit dca4149

Please sign in to comment.