xbps-src: default XBPS_MAKEJOBS to nproc
previously this defaulted to 1. In some rare cases, nproc is not desirable, but that can be easily overriden in the standard ways, etc/conf or -jN. For compatibility with other distros, it defaults to 1 when nproc is not available.
This commit is contained in:
parent
d82bc83d97
commit
a13c842291
2 changed files with 7 additions and 1 deletions
|
@ -482,7 +482,6 @@ setup_pkg() {
|
|||
DESTDIR=$XBPS_DESTDIR/$XBPS_CROSS_TRIPLET/${sourcepkg}-${version}
|
||||
PKGDESTDIR=$XBPS_DESTDIR/$XBPS_CROSS_TRIPLET/${pkg}-${version}
|
||||
|
||||
: ${XBPS_MAKEJOBS:=1}
|
||||
export XBPS_ORIG_MAKEJOBS=${XBPS_ORIG_MAKEJOBS:=$XBPS_MAKEJOBS}
|
||||
if [ -n "$disable_parallel_build" ]; then
|
||||
XBPS_MAKEJOBS=1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue