aboutsummaryrefslogtreecommitdiff
path: root/bdep/clean.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'bdep/clean.hxx')
-rw-r--r--bdep/clean.hxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/bdep/clean.hxx b/bdep/clean.hxx
index 35b37aa..f64c1ef 100644
--- a/bdep/clean.hxx
+++ b/bdep/clean.hxx
@@ -19,7 +19,15 @@ namespace bdep
const cstrings& pkgs,
const strings& cfg_vars)
{
- run_bpkg (2, o, "clean", "-d", c->path, cfg_vars, pkgs);
+ run_bpkg (2,
+ o,
+ (o.jobs_specified ()
+ ? strings ({"-j", to_string (o.jobs ())})
+ : strings ()),
+ "clean",
+ "-d", c->path,
+ cfg_vars,
+ pkgs);
}
inline int