diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-11-17 16:18:29 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-11-19 17:37:57 +0300 |
commit | 859a34416d0a11f7ebd0bfc85073b46555fc8d41 (patch) | |
tree | 32fc650bcf23fbf4c92ea7431102ce3a283522a0 /bpkg/pkg-command.cxx | |
parent | fd426bd4bafdd1760d9bbef716dfc70b5bdb1010 (diff) |
Add --jobs common option
Diffstat (limited to 'bpkg/pkg-command.cxx')
-rw-r--r-- | bpkg/pkg-command.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
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 (); } }; |