diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-06-08 15:30:35 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-06-08 15:43:08 +0200 |
commit | f8e6ed173b9b77ec7ac1b0d39ae83f29fb9468a9 (patch) | |
tree | c8f22a50c6df6070105fda88a7800c2b51332d23 /libbuild2/adhoc-rule-buildscript.cxx | |
parent | 5900f155a4a0da88cfd56bedccef0c74cc19c9f7 (diff) |
Redo low verbosity diagnostic deduction to use scope instead of target
Diffstat (limited to 'libbuild2/adhoc-rule-buildscript.cxx')
-rw-r--r-- | libbuild2/adhoc-rule-buildscript.cxx | 10 |
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); |