From bead742dbac51088e89cdd4dd7a55aaa1d8c98d7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 21 Jul 2015 16:03:05 +0200 Subject: Be quiet when running pre/post operations --- build/operation.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/build/operation.cxx b/build/operation.cxx index 6b3b08d..cff0802 100644 --- a/build/operation.cxx +++ b/build/operation.cxx @@ -137,7 +137,10 @@ namespace build } case target_state::unchanged: { - info << diag_already_done (a, t); + // Be quiet in pre/post operations. + // + if (a.outer_operation () == 0) + info << diag_already_done (a, t); break; } case target_state::changed: @@ -171,7 +174,10 @@ namespace build } case target_state::unchanged: { - info << diag_already_done (a, t); + // Be quiet in pre/post operations. + // + if (a.outer_operation () == 0) + info << diag_already_done (a, t); break; } case target_state::unknown: // Assume something was done to it. -- cgit v1.1