diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-06-02 08:34:38 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-06-02 08:36:23 +0200 |
commit | b63824f48a0a38ed9a8c4b7306b1af92ccf2135b (patch) | |
tree | 21aab00dd77b0221d43b5e4b05bc57e4450e67ba /libbuild2/target.hxx | |
parent | ad7b8477f177355e50b411b7296ae2e392d7a4be (diff) |
Redo fallback reverse operation machinery in ad hoc recipes
Diffstat (limited to 'libbuild2/target.hxx')
-rw-r--r-- | libbuild2/target.hxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libbuild2/target.hxx b/libbuild2/target.hxx index 56b10c0..45f285c 100644 --- a/libbuild2/target.hxx +++ b/libbuild2/target.hxx @@ -97,6 +97,16 @@ namespace build2 // using rule_match = pair<const string, reference_wrapper<const rule>>; + // Additional information about a rule match (see rule.hxx for details). + // + // @@ TODO: will probably want to clear it after apply() if add anything + // dynamically-allocated here (see apply_impl()). + // + struct match_extra + { + bool fallback; // True if matching a fallback rule. + }; + // Target. // @@ -495,6 +505,10 @@ namespace build2 // mutable atomic_count dependents {0}; + // Match state storage between the match() and apply() calls. + // + build2::match_extra match_extra; + // Matched rule (pointer to hint_rule_map element). Note that in case of // a direct recipe assignment we may not have a rule (NULL). // |