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/rule.hxx | |
parent | 73a64baac30f5c478201e9f86dc4dd5ef85f0192 (diff) |
Only pass target to recipe_text() if recipe is not shared
Diffstat (limited to 'libbuild2/rule.hxx')
-rw-r--r-- | libbuild2/rule.hxx | 6 |
1 files changed, 5 insertions, 1 deletions
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: |