From 378b2598a305d4e332e52460ca89dd867546a58b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 7 Feb 2018 10:00:46 +0200 Subject: 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. --- build2/operation.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'build2/operation.hxx') 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. // -- cgit v1.1