diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-11-17 18:04:53 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-11-19 17:32:52 +0300 |
commit | d861a7fecff8e900e3a65e09dc7a2e89e57b3b47 (patch) | |
tree | e2b3872b630fe756990ba6a390ac819b6b9f728c /bdep/update.hxx | |
parent | 5cb3bc99fba750e95a5e17e8a45ff8134b72082d (diff) | |
download | bdep-d861a7fecff8e900e3a65e09dc7a2e89e57b3b47.tar.gz bdep-d861a7fecff8e900e3a65e09dc7a2e89e57b3b47.tar.xz bdep-d861a7fecff8e900e3a65e09dc7a2e89e57b3b47.zip |
Add --jobs common option
Diffstat (limited to 'bdep/update.hxx')
-rw-r--r-- | bdep/update.hxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bdep/update.hxx b/bdep/update.hxx index d79c7b2..36ce8da 100644 --- a/bdep/update.hxx +++ b/bdep/update.hxx @@ -19,7 +19,15 @@ namespace bdep const cstrings& pkgs, const strings& cfg_vars) { - run_bpkg (2, o, "update", "-d", c->path, cfg_vars, pkgs); + run_bpkg (2, + o, + (o.jobs_specified () + ? strings ({"-j", to_string (o.jobs ())}) + : strings ()), + "update", + "-d", c->path, + cfg_vars, + pkgs); } inline int |