From 1c952cd93315b8aa1c15d5e77c1e586f17e7141d Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 14 Mar 2011 16:11:56 +0000 Subject: GNUmakefile: do number of cores detection same as BSD, system_profiler apparently changed between versions. --- GNUmakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index e8571064883..088947c9ddb 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -53,7 +53,7 @@ ifeq ($(OS), Linux) NPROCS:=$(shell grep -c ^processor /proc/cpuinfo) endif ifeq ($(OS), Darwin) - NPROCS:=$(shell system_profiler SPHardwareDataType | awk '/Total Number Of Cores/ {print $5}{next;};') + NPROCS:=$(shell sysctl -a | grep "hw.ncpu " | cut -d" " -f3) # make install not support on mac yet DEFAULT_TARGET= endif -- cgit v1.2.3