From 0c1ea060f7417ffc52cababd74278ea9d6047114 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 2 Aug 2021 11:06:35 +0200 Subject: Add version_string, list of modules to b_info() result Also only attempt to parse the string version to standard version if the version modules is loaded. --- tests/b-info/driver.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/b-info/driver.cxx') diff --git a/tests/b-info/driver.cxx b/tests/b-info/driver.cxx index 3ecfbc0..c5a2013 100644 --- a/tests/b-info/driver.cxx +++ b/tests/b-info/driver.cxx @@ -110,6 +110,18 @@ try cout << *i; } + cout << endl + << "modules: "; + + for (auto b (pi.modules.begin ()), i (b); + i != pi.modules.end (); + ++i) + { + if (i != b) + cout << ' '; + + cout << *i; + } cout << endl; return 0; -- cgit v1.1