forked from bartvdbraak/blender
GNUmakefile: do number of cores detection same as BSD, system_profiler apparently changed between versions.
This commit is contained in:
parent
f4e16def46
commit
1c952cd933
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user