From 859a34416d0a11f7ebd0bfc85073b46555fc8d41 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 17 Nov 2018 16:18:29 +0300 Subject: Add --jobs common option --- bpkg/pkg-command.cxx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'bpkg/pkg-command.cxx') diff --git a/bpkg/pkg-command.cxx b/bpkg/pkg-command.cxx index c66c8da..1d53e03 100644 --- a/bpkg/pkg-command.cxx +++ b/bpkg/pkg-command.cxx @@ -44,7 +44,16 @@ namespace bpkg { bspec += ')'; l4 ([&]{trace << "buildspec: " << bspec;}); - run_b (o, verb_b::normal, cvars, vars, bspec); + + run_b (o, + verb_b::normal, + (o.jobs_specified () + ? strings ({"-j", to_string (o.jobs ())}) + : strings ()), + cvars, + vars, + bspec); + bspec.clear (); } }; -- cgit v1.1