Get the number of CPUs correctly on Linux

This commit is contained in:
Thiago Marcos P. Santos
2015-04-29 16:51:46 +03:00
parent 3e928f41c8
commit 8f813a4ef1

View File

@@ -11,7 +11,7 @@ endif
ifeq ($(shell uname -s), Linux)
HOST = linux
JOBS ?= $(shell sysctl -n hw.ncpu)
JOBS ?= $(shell grep --count processor /proc/cpuinfo)
endif
JOBS ?= 1