From dca4149b8826363e9df8eadfd060d2addfc7af7e Mon Sep 17 00:00:00 2001 From: Mauro Ezequiel Moltrasio Date: Tue, 21 Jan 2025 10:59:59 +0100 Subject: [PATCH] Cap parallelism of dependency building 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. --- builder/install/install-dependencies.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/install/install-dependencies.sh b/builder/install/install-dependencies.sh index 082f62ec88..3c19887eae 100755 --- a/builder/install/install-dependencies.sh +++ b/builder/install/install-dependencies.sh @@ -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