From 136afdbb1232f0546a2b013fd08cfe8278722ef2 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 29 Sep 2020 21:12:03 +0300 Subject: Add ext_mods parameter to b_info() --- libbutl/b.mxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libbutl/b.mxx') 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: ` 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& cmd_callback = {}, const path& program = path ("b"), -- cgit v1.1