[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35541] trunk/blender/GNUmakefile: GNUmakefile: do number of cores detection same as BSD, system_profiler apparently changed between versions.

Brecht Van Lommel brechtvanlommel at pandora.be
Mon Mar 14 17:11:56 CET 2011


Revision: 35541
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35541
Author:   blendix
Date:     2011-03-14 16:11:56 +0000 (Mon, 14 Mar 2011)
Log Message:
-----------
GNUmakefile: do number of cores detection same as BSD, system_profiler apparently changed between versions.

Modified Paths:
--------------
    trunk/blender/GNUmakefile

Modified: trunk/blender/GNUmakefile
===================================================================
--- trunk/blender/GNUmakefile	2011-03-14 16:10:35 UTC (rev 35540)
+++ trunk/blender/GNUmakefile	2011-03-14 16:11:56 UTC (rev 35541)
@@ -53,7 +53,7 @@
 	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




More information about the Bf-blender-cvs mailing list