From 91e6f8b321fb470cfffa578dcd7f24669186604f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 12 Mar 2018 13:59:08 +0200 Subject: Adjust disfigure diagnostics --- build2/config/operation.cxx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/build2/config/operation.cxx b/build2/config/operation.cxx index 65592c5..ddbfc79 100644 --- a/build2/config/operation.cxx +++ b/build2/config/operation.cxx @@ -575,10 +575,15 @@ namespace build2 { case rmdir_status::not_empty: { - warn << "directory " << out_root << " is " - << (out_root == work - ? "current working directory" - : "not empty") << ", not removing"; + // We used to issue a warning but it is actually a valid usecase + // to leave the build output around in case, for example, of a + // reconfigure. + // + if (verb) + info << "directory " << out_root << " is " + << (out_root == work + ? "current working directory" + : "not empty") << ", not removing"; break; } case rmdir_status::success: -- cgit v1.1