diff options
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/GNUmakefile b/GNUmakefile index 2732fdb6c8c..df2d7051326 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -87,13 +87,13 @@ ifndef NPROCS NPROCS:=$(shell nproc) endif ifeq ($(OS), Darwin) - NPROCS:=$(shell sysctl -a | grep "hw.ncpu" | cut -d" " -f3) + NPROCS:=$(shell sysctl -n hw.ncpu) endif ifeq ($(OS), FreeBSD) - NPROCS:=$(shell sysctl -a | grep "hw.ncpu" | cut -d" " -f2 ) + NPROCS:=$(shell sysctl -n hw.ncpu) endif ifeq ($(OS), NetBSD) - NPROCS:=$(shell sysctl -a | grep "hw.ncpu" | cut -d" " -f2 ) + NPROCS:=$(shell sysctl -n hw.ncpu) endif endif |