From 05afdd8ca16c7066d12510a27e2fc08743bb2e95 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 29 Nov 2022 08:02:51 +0200 Subject: Fix backlink logic for target groups We used to backlink ad hoc group members both via the group and as individual members. And for explicit groups it was done only via individual members, which means it only works correctly if every member is individually updated. Now both types of groups are backlinked from the group target. --- libbuild2/context.hxx | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'libbuild2/context.hxx') diff --git a/libbuild2/context.hxx b/libbuild2/context.hxx index c16181f..b71a068 100644 --- a/libbuild2/context.hxx +++ b/libbuild2/context.hxx @@ -505,7 +505,12 @@ namespace build2 // const variable* var_clean; - // Forwarded configuration backlink mode. Valid values are: + // Forwarded configuration backlink mode. The value has two components + // in the form: + // + // [] + // + // Valid values are: // // false - no link. // true - make a link using appropriate mechanism. @@ -513,8 +518,14 @@ namespace build2 // hard - make a hard link. // copy - make a copy. // overwrite - copy over but don't remove on clean. + // group - inherit the group mode (only valid for group members). // - // Note that it can be set by a matching rule as a rule-specific variable. + // While the component should be either true or false and can be + // used to suppress printing of specific ad hoc group members at verbosity + // level 1. Note that it cannot be false for the primary member. + // + // Note that this value can be set by a matching rule as a rule-specific + // variable. // // Note also that the overwrite mode was originally meant for handling // pregenerated source code. But in the end this did not pan out for @@ -538,7 +549,7 @@ namespace build2 // just expose a mechanism to delegate to a different rule, which we // already have). // - // [string] target visibility + // [names] target visibility // const variable* var_backlink; -- cgit v1.1