From 920ed11a433b0e292a18adb8c68829a00e8c70cc Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 26 May 2020 21:35:59 +0300 Subject: Allow process path values and targets as buildscript program names Also deduce the recipe name. --- libbuild2/rule.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libbuild2/rule.hxx') 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; -- cgit v1.1