aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-08-31 19:39:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-08-31 19:39:16 +0200
commit9975807ea9304493f584881deb0f06e735cebf31 (patch)
tree1c7eb3e493af47bf20cc40cecb6120ddfeac271e
parent1bf439f7918f2c6f8fa07db3abb53722156945c7 (diff)
Dump basic information about each module interface being compiledmodule-map-dump
Run as: $ b --match-only -s
-rw-r--r--build2/cc/compile-rule.cxx18
1 files changed, 18 insertions, 0 deletions
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 <cstdlib> // exit()
#include <cstring> // strlen()
+#include <iostream> // cout
#include <build2/file.hxx>
#include <build2/depdb.hxx>
@@ -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