From 9975807ea9304493f584881deb0f06e735cebf31 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 31 Aug 2018 19:39:16 +0200 Subject: Dump basic information about each module interface being compiled Run as: $ b --match-only -s --- build2/cc/compile-rule.cxx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/build2/cc/compile-rule.cxx b/build2/cc/compile-rule.cxx index 7a50170..3660943 100644 --- a/build2/cc/compile-rule.cxx +++ b/build2/cc/compile-rule.cxx @@ -6,6 +6,7 @@ #include // exit() #include // strlen() +#include // cout #include #include @@ -964,6 +965,23 @@ namespace build2 } } + if (tu.type () == translation_type::module_iface) + { + cout << tu.mod.name << ' ' + << src.path ().string () << ' ' + << cid; + + cstrings ops; + append_options (ops, tstd); + append_options (ops, t, c_poptions); + append_options (ops, t, x_poptions); + + for (const char* o: ops) + cout << ' ' << o; + + cout << endl; + } + md.type = tu.type (); // Extract the module dependency information in addition to header -- cgit v1.1