aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/dump.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/dump.cxx')
-rw-r--r--libbuild2/dump.cxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/libbuild2/dump.cxx b/libbuild2/dump.cxx
index 9f60900..11eb4b3 100644
--- a/libbuild2/dump.cxx
+++ b/libbuild2/dump.cxx
@@ -350,10 +350,21 @@ namespace build2
//
if (!t.adhoc_recipes.empty ())
{
+ auto& re (*s.root_scope ()->root_extra);
+
for (const adhoc_recipe r: t.adhoc_recipes)
{
+ os << endl
+ << ind << '%';
+
+ r.rule->dump_attributes (os);
+
+ for (action a: r.actions)
+ os << ' ' << re.meta_operations[a.meta_operation ()]->name <<
+ '(' << re.operations[a.operation ()]->name << ')';
+
os << endl;
- r.rule->dump (os, ind); // @@ TODO: pass action(s).
+ r.rule->dump_text (os, ind);
}
used = true;