diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-05-31 12:37:59 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-05-31 13:00:43 +0200 |
commit | ad7b8477f177355e50b411b7296ae2e392d7a4be (patch) | |
tree | 61339754654e5bb11db585c2954e237d607afac5 /libbuild2/adhoc-rule-buildscript.cxx | |
parent | 73a64baac30f5c478201e9f86dc4dd5ef85f0192 (diff) |
Only pass target to recipe_text() if recipe is not shared
Diffstat (limited to 'libbuild2/adhoc-rule-buildscript.cxx')
-rw-r--r-- | libbuild2/adhoc-rule-buildscript.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libbuild2/adhoc-rule-buildscript.cxx b/libbuild2/adhoc-rule-buildscript.cxx index 73219b6..fe74fc6 100644 --- a/libbuild2/adhoc-rule-buildscript.cxx +++ b/libbuild2/adhoc-rule-buildscript.cxx @@ -23,8 +23,12 @@ using namespace std; namespace build2 { bool adhoc_buildscript_rule:: - recipe_text (context& ctx, const target& tg, const adhoc_actions& acts, - string&& t, attributes& as) + recipe_text (context& ctx, + const scope& s, + const target* tg, + const adhoc_actions& acts, + string&& t, + attributes& as) { // Handle and erase recipe-specific attributes. // @@ -57,7 +61,7 @@ namespace build2 istringstream is (move (t)); build::script::parser p (ctx); - script = p.pre_parse (tg, acts, + script = p.pre_parse (s, tg, acts, is, loc.file, loc.line + 1, move (diag), as.loc); |