aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-command.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/pkg-command.cxx')
-rw-r--r--bpkg/pkg-command.cxx11
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 ();
}
};