From f5bc31da2a84b81fef5da8a59da66a2386adbea6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 12 Feb 2018 14:45:19 +0200 Subject: Make sure operation failure diagnostics is printed for pre/post-operations --- build2/config/operation.cxx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'build2/config') diff --git a/build2/config/operation.cxx b/build2/config/operation.cxx index 14ab38c..a284f65 100644 --- a/build2/config/operation.cxx +++ b/build2/config/operation.cxx @@ -348,13 +348,13 @@ namespace build2 } static void - configure_match (const values&, action, action_targets&, bool) + configure_match (const values&, action, action_targets&, uint16_t) { // Don't match anything -- see execute (). } static void - configure_execute (const values&, action a, action_targets& ts, bool) + configure_execute (const values&, action a, action_targets& ts, uint16_t) { // Match rules to configure every operation supported by each // project. Note that we are not calling operation_pre/post() @@ -497,7 +497,7 @@ namespace build2 } static void - disfigure_match (const values&, action, action_targets&, bool) + disfigure_match (const values&, action, action_targets&, uint16_t) { } @@ -595,7 +595,10 @@ namespace build2 } static void - disfigure_execute (const values&, action a, action_targets& ts, bool quiet) + disfigure_execute (const values&, + action a, + action_targets& ts, + uint16_t diag) { tracer trace ("disfigure_execute"); @@ -622,7 +625,7 @@ namespace build2 true, // Implied. trace).first); - if (verb != 0 && !quiet) + if (verb != 0 && diag >= 2) info << diag_done (a, t); } } -- cgit v1.1