diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-08-27 15:11:40 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-08-27 15:11:40 +0200 |
commit | fd689eb883655dcb29e505b041cd02fac01f0bac (patch) | |
tree | 0d85ec32d95a1c96eaa7eff28734b900c44dd3ca /build/operation.cxx | |
parent | 7f2d06258d57e39940e8fa959336da0ea66fe37f (diff) |
Dist module/meta-operation initial implementation
Diffstat (limited to 'build/operation.cxx')
-rw-r--r-- | build/operation.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/build/operation.cxx b/build/operation.cxx index a92c912..55a926a 100644 --- a/build/operation.cxx +++ b/build/operation.cxx @@ -4,6 +4,7 @@ #include <build/operation> +#include <vector> #include <ostream> #include <cassert> #include <functional> // reference_wrapper @@ -109,7 +110,7 @@ namespace build } void - execute (action a, const action_targets& ts) + execute (action a, const action_targets& ts, bool quiet) { tracer trace ("execute"); @@ -119,7 +120,7 @@ namespace build vector<reference_wrapper<target>> psp; auto body ( - [a, &psp, &trace] (void* v) + [a, quiet, &psp, &trace] (void* v) { target& t (*static_cast<target*> (v)); @@ -129,9 +130,7 @@ namespace build { case target_state::unchanged: { - // Be quiet in pre/post operations. - // - if (a.outer_operation () == 0) + if (!quiet) info << diag_done (a, t); break; } @@ -165,7 +164,7 @@ namespace build { case target_state::unchanged: { - if (a.outer_operation () == 0) + if (!quiet) info << diag_done (a, t); break; } |