From dd008d6e48b0bb66e1b9fdc489d9d1d9b4cb8d25 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 18 Nov 2016 15:39:58 +0200 Subject: Implement noop meta-operation The effect is loading all the buildfiles but not searching/matching/executing any targets/operations. Useful for testing. --- build2/operation.cxx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'build2/operation.cxx') 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", -- cgit v1.1