summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2015-04-29 16:51:46 +0300
committerThiago Marcos P. Santos <thiago@mapbox.com>2015-04-29 16:51:46 +0300
commit8f813a4ef1164107cf2cbd006abe3b0ffda99c90 (patch)
tree05f78e2546a80732eb584f4634955f7e9dce78ed /Makefile
parent3e928f41c854f5895656eb718643d9280e63bc69 (diff)
downloadqtlocation-mapboxgl-8f813a4ef1164107cf2cbd006abe3b0ffda99c90.tar.gz
Get the number of CPUs correctly on Linux
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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