aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/parser.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-05-31 07:51:43 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-05-31 07:51:43 +0200
commit54797bb6feb5f94a7f65b69c5b3b16da5410a2bc (patch)
tree6f3574d8173a30105e627de8b99ecff11d2be0d8 /libbuild2/parser.cxx
parente588fd9ba279c7e5d8c94b2b3fbcb55d6197f5c4 (diff)
Provide implied configure_* and dist_* action registration for ad hoc recipes
This makes it consistent with the existing ad hoc rules semantics.
Diffstat (limited to 'libbuild2/parser.cxx')
-rw-r--r--libbuild2/parser.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx
index 1b8e2d3..b79b65c 100644
--- a/libbuild2/parser.cxx
+++ b/libbuild2/parser.cxx
@@ -1447,7 +1447,12 @@ namespace build2
// And the same for the configure meta-operation to, for
// example, make sure a hinted ad hoc rule matches. @@ Hm,
// maybe we fixed this with action-specific hints? But the
- // injection part above may still apply.
+ // injection part above may still apply. BTW, this is also
+ // required for see-through groups in order to resolve their
+ // member.
+ //
+ // Note also that the equivalent semantics for ad hoc recipes
+ // is provided by match_adhoc_recipe().
//
if (a.meta_operation () == perform_id)
{
@@ -1469,7 +1474,8 @@ namespace build2
// see-through target group, then we may also need to
// register update for other meta-operations (see, for
// example, wildcard update registration in the cli
- // module).
+ // module). BTW, we can now detect such a target via
+ // its target type flags.
}
}
}
@@ -2225,6 +2231,9 @@ namespace build2
}
target_->adhoc_recipes.push_back (r);
+
+ // Note that "registration" of configure_* and dist_* actions
+ // (similar to ad hoc rules) is provided by match_adhoc_recipe().
}
}