1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

Makefile: Default INDEX_JOBS value to kern.smp.cpus

INDEX_JOBS currently defaults to 2 for the make index target.

MAKE_JOBS_NUMBER in bsd.port.mk currently uses kern.smp.cpus to select
a default. Modify INDEX_JOBS to match.

Nominal and repeatable performance improvements of ~20-30% were observed.

CR:		D381
Reviewed by:	swills, bdrewery
Approved by:	portmgr
This commit is contained in:
Kubilay Kocak 2014-08-18 04:19:46 +00:00
parent 482fd2f409
commit e5451112c0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=365265

View File

@ -82,7 +82,10 @@ ${INDEXDIR}/${INDEXFILE}.bz2: .PHONY
MASTER_SITE_INDEX?= http://www.FreeBSD.org/ports/
SETENV?= /usr/bin/env
FETCHINDEX?= ${SETENV} ${FETCH_ENV} fetch -am -o
INDEX_JOBS?= 2
.if !defined(INDEX_JOBS)
INDEX_JOBS!= ${SYSCTL} -n kern.smp.cpus
.endif
.if !defined(INDEX_VERBOSE)
INDEX_ECHO_MSG= true