aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/context.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-11-01 09:42:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-11-01 09:42:57 +0200
commite745077de53aa0e21affea66c2f55bba172ec286 (patch)
treed5e52e449f8981c19aef7223c9365f7d9f2f5bc3 /libbuild2/context.hxx
parenta49b6fff2ba25bf9150f89a4ecfc2c707ba633de (diff)
Add support for adjusting match options of post hoc prerequisites
Diffstat (limited to 'libbuild2/context.hxx')
-rw-r--r--libbuild2/context.hxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/libbuild2/context.hxx b/libbuild2/context.hxx
index 8898c92..2dec54a 100644
--- a/libbuild2/context.hxx
+++ b/libbuild2/context.hxx
@@ -432,9 +432,15 @@ namespace build2
//
struct posthoc_target
{
+ struct prerequisite_target
+ {
+ const build2::target* target;
+ uint64_t match_options;
+ };
+
build2::action action;
reference_wrapper<const build2::target> target;
- vector<const build2::target*> prerequisite_targets;
+ vector<prerequisite_target> prerequisite_targets;
};
list<posthoc_target> current_posthoc_targets;