Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
e2efece
)
Reduce number of parallel gcc invocations from 4 to 2 per cpu
08/608/1
author
Damjan Marion
<damarion@cisco.com>
Thu, 24 Mar 2016 16:19:27 +0000
(17:19 +0100)
committer
Damjan Marion
<damarion@cisco.com>
Thu, 24 Mar 2016 16:20:14 +0000
(17:20 +0100)
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 <damarion@cisco.com>
build-root/Makefile
patch
|
blob
|
history
diff --git
a/build-root/Makefile
b/build-root/Makefile
index
f8b2105
..
34d6c9d
100644
(file)
--- 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)