Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-03-14 19:11:56 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-03-14 19:11:56 +0300
commit1c952cd93315b8aa1c15d5e77c1e586f17e7141d (patch)
tree8682d4fc3b7f99d0a5eebfd06e3158ff3100838c /GNUmakefile
parentf4e16def467fab8c37c249b005c7952f88c8344f (diff)
GNUmakefile: do number of cores detection same as BSD, system_profiler apparently changed between versions.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile2
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