aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/rule.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-05-26 21:35:59 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-06-03 12:26:33 +0300
commit920ed11a433b0e292a18adb8c68829a00e8c70cc (patch)
treee365baf8be68b168e19f42f20c5dde1526c1cbba /libbuild2/rule.hxx
parent4001ff053071c09008e88312c4f973c417322a07 (diff)
Allow process path values and targets as buildscript program names
Also deduce the recipe name.
Diffstat (limited to 'libbuild2/rule.hxx')
-rw-r--r--libbuild2/rule.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbuild2/rule.hxx b/libbuild2/rule.hxx
index 76ab306..a79eeed 100644
--- a/libbuild2/rule.hxx
+++ b/libbuild2/rule.hxx
@@ -134,7 +134,7 @@ namespace build2
// therefore requires cleanup.
//
virtual bool
- recipe_text (context&, string&&, attributes&) = 0;
+ recipe_text (context&, const target&, string&&, attributes&) = 0;
public:
// Some of the operations come in compensating pairs, such as update and
@@ -194,7 +194,7 @@ namespace build2
adhoc_script_rule (const location& l, size_t b): adhoc_rule (l, b) {}
virtual bool
- recipe_text (context&, string&&, attributes&) override;
+ recipe_text (context&, const target&, string&&, attributes&) override;
public:
using script_type = build::script::script;
@@ -251,7 +251,7 @@ namespace build2
adhoc_cxx_rule (const location&, size_t, uint64_t version);
virtual bool
- recipe_text (context&, string&& t, attributes&) override;
+ recipe_text (context&, const target&, string&& t, attributes&) override;
virtual
~adhoc_cxx_rule () override;