diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-03-14 19:11:56 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-03-14 19:11:56 +0300 |
commit | 1c952cd93315b8aa1c15d5e77c1e586f17e7141d (patch) | |
tree | 8682d4fc3b7f99d0a5eebfd06e3158ff3100838c | |
parent | f4e16def467fab8c37c249b005c7952f88c8344f (diff) |
GNUmakefile: do number of cores detection same as BSD, system_profiler apparently changed between versions.
-rw-r--r-- | GNUmakefile | 2 |
1 files changed, 1 insertions, 1 deletions
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 |