aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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