aboutsummaryrefslogtreecommitdiff
path: root/build2/operation
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-11-18 15:39:58 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-18 17:30:47 +0200
commitdd008d6e48b0bb66e1b9fdc489d9d1d9b4cb8d25 (patch)
tree1270a617c1a6893d3a1f5308ecf9d1e9dbc1694e /build2/operation
parentaeeedd32f8717d8c6a1886a5561a879059be87d0 (diff)
Implement noop meta-operation
The effect is loading all the buildfiles but not searching/matching/executing any targets/operations. Useful for testing.
Diffstat (limited to 'build2/operation')
-rw-r--r--build2/operation10
1 files changed, 6 insertions, 4 deletions
diff --git a/build2/operation b/build2/operation
index 730a958..e04d1a3 100644
--- a/build2/operation
+++ b/build2/operation
@@ -99,10 +99,11 @@ namespace build2
// Id constants for build-in and pre-defined meta/operations.
//
- const meta_operation_id perform_id = 1;
- const meta_operation_id configure_id = 2;
- const meta_operation_id disfigure_id = 3;
- const meta_operation_id dist_id = 4;
+ const meta_operation_id noop_id = 1; // nomop?
+ const meta_operation_id perform_id = 2;
+ const meta_operation_id configure_id = 3;
+ const meta_operation_id disfigure_id = 4;
+ const meta_operation_id dist_id = 5;
// The default operation is a special marker that can be used to indicate
// that no operation was explicitly specified by the user. If adding
@@ -250,6 +251,7 @@ namespace build2
void
execute (action, const action_targets&, bool quiet);
+ extern meta_operation_info noop;
extern meta_operation_info perform;
// Operation info.