[Bf-blender-cvs] [06a05e4] master: BSD's was using too many build threads for convenience makefile

Campbell Barton noreply at git.blender.org
Tue May 27 01:47:56 CEST 2014


Commit: 06a05e4dae3f5cf07844fb8491867f1143eb0441
Author: Campbell Barton
Date:   Tue May 27 09:45:51 2014 +1000
https://developer.blender.org/rB06a05e4dae3f5cf07844fb8491867f1143eb0441

BSD's was using too many build threads for convenience makefile

D431 from Aaron Peterson

===================================================================

M	GNUmakefile

===================================================================

diff --git a/GNUmakefile b/GNUmakefile
index 566a44b..0370eba 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -77,13 +77,13 @@ ifeq ($(OS), Linux)
 	NPROCS:=$(shell nproc)
 endif
 ifeq ($(OS), Darwin)
-	NPROCS:=$(shell sysctl -a | grep "hw.ncpu " | cut -d" " -f3)
+	NPROCS:=$(shell sysctl -a | grep "hw.ncpu" | cut -d" " -f2)
 endif
 ifeq ($(OS), FreeBSD)
-	NPROCS:=$(shell sysctl -a | grep "hw.ncpu " | cut -d" " -f3 )
+	NPROCS:=$(shell sysctl -a | grep "hw.ncpu" | cut -d" " -f2 )
 endif
 ifeq ($(OS), NetBSD)
-	NPROCS:=$(shell sysctl -a | grep "hw.ncpu " | cut -d" " -f3 )
+	NPROCS:=$(shell sysctl -a | grep "hw.ncpu" | cut -d" " -f2 )
 endif




More information about the Bf-blender-cvs mailing list