From 8f813a4ef1164107cf2cbd006abe3b0ffda99c90 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Wed, 29 Apr 2015 16:51:46 +0300 Subject: Get the number of CPUs correctly on Linux --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d1552d1a82..b25a833102 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.1