aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2024-07-14 03:20:34 +0000
committerAndre Heinecke <[email protected]>2024-07-14 03:25:17 +0000
commit23df03faa033e350f63b2e26f970cb2bf6594ed9 (patch)
treec93d06ab33316465e0231f6d2e398a1efb594397 /build-aux
parentcommon: Fix tlv-parser for constructed OCTET-STRING. (diff)
downloadgnupg-23df03faa033e350f63b2e26f970cb2bf6594ed9.tar.gz
gnupg-23df03faa033e350f63b2e26f970cb2bf6594ed9.zip
speedo: Use nproc if available for make jobs
* build-aux/speedo.mk (MAKE_J): Use nproc if it is available. -- Instead of hardcoding the make jobs value make it dependent on the build system.
Diffstat (limited to 'build-aux')
-rw-r--r--build-aux/speedo.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/build-aux/speedo.mk b/build-aux/speedo.mk
index 942ffa73f..761f7c070 100644
--- a/build-aux/speedo.mk
+++ b/build-aux/speedo.mk
@@ -180,8 +180,10 @@ STATIC=0
# external packages.
TARBALLS=$(shell pwd)/../tarballs
-# Number of parallel make jobs for each package
-MAKE_J=6
+# Check if nproc is available, set MAKE_J accordingly
+MAKE_J = $(shell if command -v nproc >/dev/null 2>&1; then \
+ nproc; else echo 6; \
+ fi)
# Name to use for the w32 installer and sources