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/parser.cxx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'libbuild2/parser.cxx') 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, 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. -- cgit v1.1