From f8e6ed173b9b77ec7ac1b0d39ae83f29fb9468a9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 8 Jun 2021 15:30:35 +0200 Subject: Redo low verbosity diagnostic deduction to use scope instead of target --- libbuild2/adhoc-rule-buildscript.cxx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'libbuild2/adhoc-rule-buildscript.cxx') 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); -- cgit v1.1