BSD's was using too many build threads for convenience makefile

D431 from Aaron Peterson
This commit is contained in:
Campbell Barton 2014-05-27 09:45:51 +10:00
parent 0efc0d5200
commit 06a05e4dae

@ -77,13 +77,13 @@ ifeq ($(OS), Linux)
NPROCS:=$(shell nproc)
endif
ifeq ($(OS), Darwin)
NPROCS:=$(shell sysctl -a | grep "hw.ncpu " | cut -d" " -f3)
NPROCS:=$(shell sysctl -a | grep "hw.ncpu" | cut -d" " -f2)
endif
ifeq ($(OS), FreeBSD)
NPROCS:=$(shell sysctl -a | grep "hw.ncpu " | cut -d" " -f3 )
NPROCS:=$(shell sysctl -a | grep "hw.ncpu" | cut -d" " -f2 )
endif
ifeq ($(OS), NetBSD)
NPROCS:=$(shell sysctl -a | grep "hw.ncpu " | cut -d" " -f3 )
NPROCS:=$(shell sysctl -a | grep "hw.ncpu" | cut -d" " -f2 )
endif