aboutsummaryrefslogtreecommitdiff
path: root/build2/operation.cxx
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.cxx
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.cxx')
-rw-r--r--build2/operation.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/build2/operation.cxx b/build2/operation.cxx
index f8ce46f..57ad84b 100644
--- a/build2/operation.cxx
+++ b/build2/operation.cxx
@@ -170,6 +170,22 @@ namespace build2
}
}
+ meta_operation_info noop {
+ noop_id,
+ "noop",
+ "", // Presumably we will never need these since we are not going
+ "", // to do anything.
+ "",
+ nullptr, // meta-operation pre
+ nullptr, // operation pre
+ &load,
+ nullptr, // search
+ nullptr, // match
+ nullptr, // execute
+ nullptr, // operation post
+ nullptr // meta-operation post
+ };
+
meta_operation_info perform {
perform_id,
"perform",