From dc3349218483292587047ccf3b8d61e9a3c9cca0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 2 Aug 2021 10:49:29 +0200 Subject: Print list of bootstrapped modules in info meta-operation --- libbuild2/operation.cxx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'libbuild2') 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; } } -- cgit v1.1