aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/adhoc-rule-buildscript.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/adhoc-rule-buildscript.cxx')
-rw-r--r--libbuild2/adhoc-rule-buildscript.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/libbuild2/adhoc-rule-buildscript.cxx b/libbuild2/adhoc-rule-buildscript.cxx
index c4b9169..c715ff2 100644
--- a/libbuild2/adhoc-rule-buildscript.cxx
+++ b/libbuild2/adhoc-rule-buildscript.cxx
@@ -23,11 +23,7 @@ using namespace std;
namespace build2
{
bool adhoc_buildscript_rule::
- recipe_text (context& ctx,
- const scope& s,
- const target* tg,
- string&& t,
- attributes& as)
+ recipe_text (const scope& s, string&& t, attributes& as)
{
// Handle and erase recipe-specific attributes.
//
@@ -58,9 +54,9 @@ namespace build2
checksum = sha256 (t).string ();
istringstream is (move (t));
- build::script::parser p (ctx);
+ build::script::parser p (s.ctx);
- script = p.pre_parse (s, tg, actions,
+ script = p.pre_parse (s, actions,
is, loc.file, loc.line + 1,
move (diag), as.loc);