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

View File

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