makepkg.conf: add NPROC configuration value
Useful for controlling (future) parallel jobs within makepkg. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
fa7a9f748d
commit
3e557af72f
3 changed files with 14 additions and 4 deletions
|
@ -62,6 +62,11 @@ Options
|
||||||
A string such as ``i686-pc-linux-gnu''; do not touch this unless you know what
|
A string such as ``i686-pc-linux-gnu''; do not touch this unless you know what
|
||||||
you are doing. This can be commented out by most users if desired.
|
you are doing. This can be commented out by most users if desired.
|
||||||
|
|
||||||
|
**NPROC=**""::
|
||||||
|
Sets the number of processors to use for parallel jobs in makepkg.
|
||||||
|
Note: this does not affect paralization of task during ``build()`` and
|
||||||
|
related functions.
|
||||||
|
|
||||||
**CPPFLAGS=**"cppflags"::
|
**CPPFLAGS=**"cppflags"::
|
||||||
Flags used for the C preprocessor; see CFLAGS for more information.
|
Flags used for the C preprocessor; see CFLAGS for more information.
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,8 @@ VCSCLIENTS=('bzr::breezy'
|
||||||
CARCH="@CARCH@"
|
CARCH="@CARCH@"
|
||||||
CHOST="@CHOST@"
|
CHOST="@CHOST@"
|
||||||
|
|
||||||
|
#NPROC=2
|
||||||
|
|
||||||
#-- Compiler and Linker Flags
|
#-- Compiler and Linker Flags
|
||||||
#CPPFLAGS=""
|
#CPPFLAGS=""
|
||||||
#CFLAGS="-O2 -pipe"
|
#CFLAGS="-O2 -pipe"
|
||||||
|
|
|
@ -32,10 +32,10 @@ lint_config_variables() {
|
||||||
local array=(DLAGENTS VCSCLIENTS BUILDENV OPTIONS INTEGRITY_CHECK MAN_DIRS
|
local array=(DLAGENTS VCSCLIENTS BUILDENV OPTIONS INTEGRITY_CHECK MAN_DIRS
|
||||||
DOC_DIRS PURGE_TARGETS COMPRESSGZ COMPRESSBZ2 COMPRESSXZ
|
DOC_DIRS PURGE_TARGETS COMPRESSGZ COMPRESSBZ2 COMPRESSXZ
|
||||||
COMPRESSLRZ COMPRESSLZO COMPRESSZ)
|
COMPRESSLRZ COMPRESSLZO COMPRESSZ)
|
||||||
local string=(CARCH CHOST CPPFLAGS CFLAGS CXXFLAGS LDFLAGS LTOFLAGS DEBUG_CFLAGS
|
local string=(CARCH CHOST NPROC CPPFLAGS CFLAGS CXXFLAGS LDFLAGS LTOFLAGS
|
||||||
DEBUG_CXXFLAGS DISTCC_HOSTS BUILDDIR STRIP_BINARIES STRIP_SHARED
|
DEBUG_CFLAGS DEBUG_CXXFLAGS DISTCC_HOSTS BUILDDIR STRIP_BINARIES
|
||||||
STRIP_STATIC PKGDEST SRCDEST SRCPKGDEST LOGDEST PACKAGER GPGKEY
|
STRIP_SHARED STRIP_STATIC PKGDEST SRCDEST SRCPKGDEST LOGDEST
|
||||||
PKGEXT SRCEXT)
|
PACKAGER GPGKEY PKGEXT SRCEXT)
|
||||||
|
|
||||||
local i keys ret=0
|
local i keys ret=0
|
||||||
|
|
||||||
|
@ -66,5 +66,8 @@ lint_config_variables() {
|
||||||
warning "$(gettext "PACKAGER should have the format 'Example Name <email@address.invalid>'")"
|
warning "$(gettext "PACKAGER should have the format 'Example Name <email@address.invalid>'")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# provide default value if NPROC is not set
|
||||||
|
[[ -z $NPROC ]] && NPROC=1
|
||||||
|
|
||||||
return $ret
|
return $ret
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue