From 4d30d9688bb5bebbf799dad38495940bbdf5aa20 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 12 Dec 2024 11:01:46 +0200 Subject: Suppress outcome diagnostics when building in module context --- libbuild2/module.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libbuild2/module.cxx b/libbuild2/module.cxx index 36a7ce5..df0da48 100644 --- a/libbuild2/module.cxx +++ b/libbuild2/module.cxx @@ -188,16 +188,20 @@ namespace build2 loc, tgs); + // Note that we suppress all outcome diagnostics, even for failure since + // the extra `info: failed to update ` is not very useful (we + // expect an appropriate diagnostics frame explains what's going on). + // mo_perform.match ({}, /* parameters */ a, tgs, - 1, /* diag (failures only) */ + 0, /* diag (none) */ false /* progress */); mo_perform.execute ({}, /* parameters */ a, tgs, - 1, /* diag (failures only) */ + 0, /* diag (none) */ false /* progress */); assert (tgs.size () == 1); -- cgit v1.1