diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2023-11-01 09:42:57 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2023-11-01 09:42:57 +0200 |
commit | e745077de53aa0e21affea66c2f55bba172ec286 (patch) | |
tree | d5e52e449f8981c19aef7223c9365f7d9f2f5bc3 /libbuild2/rule.hxx | |
parent | a49b6fff2ba25bf9150f89a4ecfc2c707ba633de (diff) |
Add support for adjusting match options of post hoc prerequisites
Diffstat (limited to 'libbuild2/rule.hxx')
-rw-r--r-- | libbuild2/rule.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libbuild2/rule.hxx b/libbuild2/rule.hxx index acd22fe..7e5ddb1 100644 --- a/libbuild2/rule.hxx +++ b/libbuild2/rule.hxx @@ -34,6 +34,9 @@ namespace build2 // implementations. It is also a way for us to later pass more information // without breaking source compatibility. // + // A rule may adjust post hoc prerequisites by overriding apply_posthoc(). + // See match_extra::posthoc_prerequisite_targets for background and details. + // // A rule may support match options and if such a rule is rematched with // different options, then reapply() is called. See // match_extra::{cur,new}_options for background and details. @@ -50,6 +53,9 @@ namespace build2 apply (action, target&, match_extra&) const = 0; virtual void + apply_posthoc (action, target&, match_extra&) const; + + virtual void reapply (action, target&, match_extra&) const; rule () = default; |