aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/parser.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-06-08 15:30:35 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-06-08 15:43:08 +0200
commitf8e6ed173b9b77ec7ac1b0d39ae83f29fb9468a9 (patch)
treec8f22a50c6df6070105fda88a7800c2b51332d23 /libbuild2/parser.cxx
parent5900f155a4a0da88cfd56bedccef0c74cc19c9f7 (diff)
Redo low verbosity diagnostic deduction to use scope instead of target
Diffstat (limited to 'libbuild2/parser.cxx')
-rw-r--r--libbuild2/parser.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx
index 6f59b30..d0661a9 100644
--- a/libbuild2/parser.cxx
+++ b/libbuild2/parser.cxx
@@ -1567,7 +1567,6 @@ namespace build2
}
}
- bool multi (replay_ != replay::stop); // Multiple targets.
bool first (replay_ != replay::play); // First target.
bool clean (false); // Seen recipe that requires cleanup.
@@ -1584,14 +1583,13 @@ namespace build2
{
const string& name;
small_vector<shared_ptr<adhoc_rule>, 1>& recipes;
- bool multi;
bool first;
bool& clean;
size_t i;
attributes& as;
buildspec& bs;
const location& bsloc;
- } d {name, recipes, multi, first, clean, i, as, bs, bsloc};
+ } d {name, recipes, first, clean, i, as, bs, bsloc};
// Note that this function must be called at most once per iteration.
//
@@ -1799,11 +1797,7 @@ namespace build2
// Set the recipe text.
//
- if (ar.recipe_text (ctx,
- *scope_,
- d.multi ? nullptr : target_,
- move (t.value),
- d.as))
+ if (ar.recipe_text (*scope_, move (t.value), d.as))
d.clean = true;
// Verify we have no unhandled attributes.