diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-04-09 00:58:37 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-04-09 01:25:18 +0300 |
commit | d09a372acbfe5a8b93dde60b1ed3b8b2b548c82e (patch) | |
tree | f10d89ca67936e53806b003444bbaf80085a44c4 /GNUmakefile | |
parent | c1d1c1dc6b9b1e3d01ea9b8acacd235c1a357500 (diff) |
Fix T48078: incorrect OS X command for retrieving number of CPUs on in Makefile.
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 |