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 10:36:28 +0200
commitae9baf01f2a9627b7f1f2dc9db349d89c992f740 (patch)
tree15acf856697d604b3df4e8f80dd09d938dff3295 /libbuild2/context.hxx
parent50f9844b8a97aa06edf09b6d8a538721a0cd24ea (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;