Skip to content
Snippets Groups Projects
Commit 1c952cd9 authored by Brecht Van Lommel's avatar Brecht Van Lommel
Browse files

GNUmakefile: do number of cores detection same as BSD, system_profiler...

GNUmakefile: do number of cores detection same as BSD, system_profiler apparently changed between versions.
parent f4e16def
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment