From: Damjan Marion Date: Thu, 24 Mar 2016 16:19:27 +0000 (+0100) Subject: Reduce number of parallel gcc invocations from 4 to 2 per cpu X-Git-Tag: v16.06-rc1~221 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=2e89a894a46e6de80bdd3bcec184a53b32e5c091;p=vpp.git Reduce number of parallel gcc invocations from 4 to 2 per cpu Some build hosts can run out of memory during compilation. This should reduce memory demand without affecting build time. Change-Id: I11bd2884a1f8885a8a332bbbf0a63324a3079c3b Signed-off-by: Damjan Marion --- diff --git a/build-root/Makefile b/build-root/Makefile index f8b2105c243..34d6c9dd28e 100644 --- a/build-root/Makefile +++ b/build-root/Makefile @@ -670,7 +670,7 @@ linux_n_cpus = `grep '^processor' /proc/cpuinfo | wc -l` MAKE_PARALLEL_JOBS = \ -j $(shell \ if [ -f /proc/cpuinfo ] ; then \ - expr 4 '*' $(linux_n_cpus) ; \ + expr 2 '*' $(linux_n_cpus) ; \ else \ echo 1 ; \ fi)