aboutsummaryrefslogtreecommitdiff
path: root/bpkg/utility.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/utility.cxx')
-rw-r--r--bpkg/utility.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/bpkg/utility.cxx b/bpkg/utility.cxx
index 9bf1a5a..a26ab3c 100644
--- a/bpkg/utility.cxx
+++ b/bpkg/utility.cxx
@@ -199,7 +199,11 @@ namespace bpkg
const strings& pvars,
const strings& cvars)
{
- cstrings args {co.build ().string ().c_str ()};
+ const char* b (co.build_specified ()
+ ? co.build ().string ().c_str ()
+ : "b" BPKG_EXE_SUFFIX);
+
+ cstrings args {b};
// Map verbosity level. If we are running quiet or at level 1,
// then run build2 quiet. Otherwise, run it at the same level