Fix T48078: incorrect OS X command for retrieving number of CPUs on in Makefile.
This commit is contained in:
@@ -87,13 +87,13 @@ ifndef NPROCS
|
|||||||
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 -n hw.ncpu)
|
||||||
endif
|
endif
|
||||||
ifeq ($(OS), FreeBSD)
|
ifeq ($(OS), FreeBSD)
|
||||||
NPROCS:=$(shell sysctl -a | grep "hw.ncpu" | cut -d" " -f2 )
|
NPROCS:=$(shell sysctl -n hw.ncpu)
|
||||||
endif
|
endif
|
||||||
ifeq ($(OS), NetBSD)
|
ifeq ($(OS), NetBSD)
|
||||||
NPROCS:=$(shell sysctl -a | grep "hw.ncpu" | cut -d" " -f2 )
|
NPROCS:=$(shell sysctl -n hw.ncpu)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user