aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-command.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-12-08 11:01:26 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-12-08 11:01:26 +0200
commit2b6ae9f528504897bc24803d95bbb6da61a2a85b (patch)
tree88f136d21acc99bf4947f758ef149cf85f748663 /bpkg/pkg-command.cxx
parent02e321b97889b558ecaad5ed03c80aee08f9c0ba (diff)
Add support for --build, --build-option common options
Diffstat (limited to 'bpkg/pkg-command.cxx')
-rw-r--r--bpkg/pkg-command.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/bpkg/pkg-command.cxx b/bpkg/pkg-command.cxx
index 253ee66..281b326 100644
--- a/bpkg/pkg-command.cxx
+++ b/bpkg/pkg-command.cxx
@@ -19,6 +19,7 @@ namespace bpkg
void
pkg_command (const string& cmd,
const dir_path& c,
+ const common_options& o,
const shared_ptr<selected_package>& p)
{
tracer trace ("pkg_command");
@@ -36,7 +37,7 @@ namespace bpkg
string bspec (cmd + "(" + out_root.string () + "/)");
level4 ([&]{trace << "buildspec: " << bspec;});
- run_b (bspec);
+ run_b (o, bspec);
}
int
@@ -70,7 +71,7 @@ namespace bpkg
level4 ([&]{trace << p->name << " " << p->version;});
- pkg_command (cmd, c, p);
+ pkg_command (cmd, c, o, p);
if (verb)
text << cmd << (cmd.back () != 'e' ? "ed " : "d ")