diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-08-02 10:49:29 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-08-02 10:49:29 +0200 |
commit | dc3349218483292587047ccf3b8d61e9a3c9cca0 (patch) | |
tree | 5a06bd557ca90c7fedb9f4ea87baf1c7be40c8ec /libbuild2 | |
parent | 9810f0fd0cefdc5bd1541db4446318dfe24c027a (diff) |
Print list of bootstrapped modules in info meta-operation
Diffstat (limited to 'libbuild2')
-rw-r--r-- | libbuild2/operation.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libbuild2/operation.cxx b/libbuild2/operation.cxx index 826cfff..428f459 100644 --- a/libbuild2/operation.cxx +++ b/libbuild2/operation.cxx @@ -560,6 +560,14 @@ namespace build2 } }; + // Print bootstrapped modules. + // + auto print_mods = [&rs] () + { + for (const module_state& ms: rs.root_extra->modules) + cout << ' ' << ms.name; + }; + // This could be a simple project that doesn't set project name. // cout @@ -572,7 +580,8 @@ namespace build2 << "amalgamation: " << (*rs.root_extra->amalgamation != nullptr ? **rs.root_extra->amalgamation : empty_dir_path) << endl << "subprojects: " << (*rs.root_extra->subprojects != nullptr ? **rs.root_extra->subprojects : subprojects ()) << endl << "operations:"; print_ops (rs.root_extra->operations, ctx.operation_table); cout << endl - << "meta-operations:"; print_ops (rs.root_extra->meta_operations, ctx.meta_operation_table); cout << endl; + << "meta-operations:"; print_ops (rs.root_extra->meta_operations, ctx.meta_operation_table); cout << endl + << "modules:"; print_mods (); cout << endl; } } |