aboutsummaryrefslogtreecommitdiff
path: root/libbutl/b.mxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-09-29 21:12:03 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-10-01 16:58:38 +0300
commit136afdbb1232f0546a2b013fd08cfe8278722ef2 (patch)
tree5d3109675edbf2530bc6c89fe5588a390cb177ee /libbutl/b.mxx
parent177d187a8e1eb01d18f4541726467bf6eef114fd (diff)
Add ext_mods parameter to b_info()
Diffstat (limited to 'libbutl/b.mxx')
-rw-r--r--libbutl/b.mxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/libbutl/b.mxx b/libbutl/b.mxx
index 6eaf473..9e12711 100644
--- a/libbutl/b.mxx
+++ b/libbutl/b.mxx
@@ -67,6 +67,11 @@ LIBBUTL_MODEXPORT namespace butl
// Run `b info: <project-dir>` command and parse and return the build2
// project information it prints to stdout. Throw b_error on error.
//
+ // Unless you need information that may come from external modules
+ // (operations, meta-operations, etc), pass false as the ext_mods argument,
+ // which results in passing --no-external-modules to the build2 program and
+ // speeds up its execution.
+ //
// You can also specify the build2 verbosity level, command line callback
// (see process_run_callback() for details), build program search details
// and additional options.
@@ -101,6 +106,7 @@ LIBBUTL_MODEXPORT namespace butl
LIBBUTL_SYMEXPORT b_project_info
b_info (const dir_path& project,
+ bool ext_mods,
std::uint16_t verb = 1,
const std::function<b_callback>& cmd_callback = {},
const path& program = path ("b"),