aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/recipe.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-06-05 06:36:30 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-06-05 06:36:30 +0200
commit9ec2bdd87659438b4aa021a10c4a4977ef77118e (patch)
tree12580b4d0b82bce80047b067c3bb221b49be7449 /libbuild2/recipe.hxx
parentd280946474568925016359be742b59fd6c000c52 (diff)
Add ability to specify ad hoc recipe actions
We are reusing the buildspec syntax for that.
Diffstat (limited to 'libbuild2/recipe.hxx')
-rw-r--r--libbuild2/recipe.hxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/libbuild2/recipe.hxx b/libbuild2/recipe.hxx
index efd184a..823f804 100644
--- a/libbuild2/recipe.hxx
+++ b/libbuild2/recipe.hxx
@@ -58,10 +58,8 @@ namespace build2
struct adhoc_recipe
{
- // @@ TODO: maybe we should have a small vector of actions (for dump).
- //
- build2::action action;
- shared_ptr<adhoc_rule> rule;
+ small_vector<action, 1> actions;
+ shared_ptr<adhoc_rule> rule;
};
}