We know all jobs are compatible with parallel make, and
we also know exactly how many vCPUs guests have, since we
created them in the first place: that allows us to default
to parallel make instead of making it opt-in.

The main advantage of doing this is that it will make life
more convenient for developers running one-off jobs or
debugging interactively.

Signed-off-by: Andrea Bolognani <abolo...@redhat.com>
---
 guests/templates/bashrc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/guests/templates/bashrc b/guests/templates/bashrc
index 866087e..2b3542c 100644
--- a/guests/templates/bashrc
+++ b/guests/templates/bashrc
@@ -14,6 +14,8 @@ export PYTHONPATH="{{ PYTHONPATH }}"
 export MAKE="{{ make }}"
 export PYTHON="{{ python }}"
 
+export MAKEFLAGS="-j{{ install_vcpus|int + 1 }}"
+
 # Enable bash completion. Only needed on FreeBSD, the system-wide
 # shell profile will take care of it for us everywhere else
 bash_completion=/usr/local/share/bash-completion/bash_completion.sh
-- 
2.17.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to