From c5feaaf745421f2ecda672585c462cf4c807d25d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 31 May 2021 12:37:59 +0200 Subject: Only pass target to recipe_text() if recipe is not shared --- libbuild2/rule.hxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libbuild2/rule.hxx') diff --git a/libbuild2/rule.hxx b/libbuild2/rule.hxx index 217632f..4b05379 100644 --- a/libbuild2/rule.hxx +++ b/libbuild2/rule.hxx @@ -161,8 +161,12 @@ namespace build2 // true if the recipe builds anything in the build/recipes/ directory and // therefore requires cleanup. // + // Target is not NULL only if this recipe is for a single target. Scope is + // the scope of the recipe (not necessarily the same as the target's base + // scope). + // virtual bool - recipe_text (context&, const target&, const adhoc_actions&, + recipe_text (context&, const scope&, const target*, const adhoc_actions&, string&&, attributes&) = 0; public: -- cgit v1.1