aboutsummaryrefslogtreecommitdiff
path: root/build2/target.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-04-23 14:25:58 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-04-26 09:38:09 +0200
commitf98262e37f608330fcfce799dcacc6fbacac8f8a (patch)
tree080ef26d80ee6419ef3a2f27434d75136f502cb2 /build2/target.hxx
parentc414abe13450e2b4e204f6368ba83c8916de1ebd (diff)
Implement forwarded configurations and backlinking
Diffstat (limited to 'build2/target.hxx')
-rw-r--r--build2/target.hxx14
1 files changed, 8 insertions, 6 deletions
diff --git a/build2/target.hxx b/build2/target.hxx
index 5ba3905..2f32064 100644
--- a/build2/target.hxx
+++ b/build2/target.hxx
@@ -400,6 +400,9 @@ namespace build2
value&
assign (const variable& var) {return vars.assign (var);}
+ value&
+ assign (const variable* var) {return vars.assign (var);} // For cached.
+
// Return a value suitable for appending. See scope for details.
//
value&
@@ -1556,12 +1559,11 @@ namespace build2
search_implied (const scope&, const K&, tracer&);
};
- // While a filesystem directory is mtime-based, the semantics is
- // not very useful in our case. In particular, if another target
- // depends on fsdir{}, then all that's desired is the creation of
- // the directory if it doesn't already exist. In particular, we
- // don't want to update the target just because some unrelated
- // entry was created in that directory.
+ // While a filesystem directory is mtime-based, the semantics is not very
+ // useful in our case. In particular, if another target depends on fsdir{},
+ // then all that's desired is the creation of the directory if it doesn't
+ // already exist. In particular, we don't want to update the target just
+ // because some unrelated entry was created in that directory.
//
class fsdir: public target
{