From 2b6ae9f528504897bc24803d95bbb6da61a2a85b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 8 Dec 2015 11:01:26 +0200 Subject: Add support for --build, --build-option common options --- bpkg/pkg-command.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bpkg/pkg-command.cxx') 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& 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 ") -- cgit v1.1