aboutsummaryrefslogtreecommitdiff
path: root/build2/operation.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-02-07 10:00:46 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-02-07 14:05:39 +0200
commit378b2598a305d4e332e52460ca89dd867546a58b (patch)
tree7541771843232bc6d51880d58a57e25737b7ba13 /build2/operation.hxx
parentf10be65c39c18668df31c8680569a6417ef3ae06 (diff)
Initial work for default update outer operation
While update still uses the old "all update rules update all their prerequisites" assumption, test and install have been fixed not to rely on this.
Diffstat (limited to 'build2/operation.hxx')
-rw-r--r--build2/operation.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/build2/operation.hxx b/build2/operation.hxx
index 8c9818e..e79a57c 100644
--- a/build2/operation.hxx
+++ b/build2/operation.hxx
@@ -70,6 +70,12 @@ namespace build2
bool inner () const {return outer_id == 0;}
bool outer () const {return outer_id != 0;}
+ action
+ inner_action () const
+ {
+ return action (meta_operation (), operation ());
+ }
+
// Implicit conversion operator to action_id for the switch() statement,
// etc. Most places only care about the inner operation.
//