mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-17 14:07:03 +01:00
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.
This commit is contained in:
parent
cc78b26a47
commit
23df03faa0
@ -180,8 +180,10 @@ STATIC=0
|
|||||||
# external packages.
|
# external packages.
|
||||||
TARBALLS=$(shell pwd)/../tarballs
|
TARBALLS=$(shell pwd)/../tarballs
|
||||||
|
|
||||||
# Number of parallel make jobs for each package
|
# Check if nproc is available, set MAKE_J accordingly
|
||||||
MAKE_J=6
|
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
|
# Name to use for the w32 installer and sources
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user