build(core): use the right number of jobs

pull/3511/head
matejcik 7 months ago committed by matejcik
parent 66213823ea
commit 1d6fafa0ff

@ -1,6 +1,12 @@
.PHONY: vendor
JOBS = 4
# get the number of CPU cores in a "portable" manner
# (accounting for darwin and big.LITTLE archs)
JOBS = $(shell sysctl -n hw.perflevel0.physicalcpu 2>/dev/null ||\
sysctl -n hw.physicalcpu 2>/dev/null ||\
sysctl -n hw.ncpu 2>/dev/null ||\
nproc 2>/dev/null ||\
echo 4)
MAKE = make -j $(JOBS)
SCONS = scons -Q -j $(JOBS)

Loading…
Cancel
Save