From d09a372acbfe5a8b93dde60b1ed3b8b2b548c82e Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 8 Apr 2016 23:58:37 +0200 Subject: Fix T48078: incorrect OS X command for retrieving number of CPUs on in Makefile. --- GNUmakefile | 6 +++--- 1 file 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 -- cgit v1.2.3