aboutsummaryrefslogtreecommitdiff
path: root/build2/rule.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-02-22 18:27:00 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-02-22 18:27:00 +0200
commit5ab4bc13f618b75937dce33d497e370b212561c2 (patch)
tree743ff4a2ba750cd40a8616dfba3b9fbcfa6e34f6 /build2/rule.cxx
parenta63b31e2469ecf5977260355dc3a6c826facbf68 (diff)
Make dist diagnostics tidier yet
Diffstat (limited to 'build2/rule.cxx')
-rw-r--r--build2/rule.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/build2/rule.cxx b/build2/rule.cxx
index e215846..fd6153e 100644
--- a/build2/rule.cxx
+++ b/build2/rule.cxx
@@ -192,7 +192,7 @@ namespace build2
{
if (verb >= 2)
text << "mkdir " << d;
- else if (verb)
+ else if (verb && current_diag_noise)
text << "mkdir " << t;
};
@@ -270,14 +270,14 @@ namespace build2
target_state fsdir_rule::
perform_clean (action a, const target& t)
{
- // The reverse order of update: first delete this directory,
- // then clean prerequisites (e.g., delete parent directories).
+ // The reverse order of update: first delete this directory, then clean
+ // prerequisites (e.g., delete parent directories).
//
- // Don't fail if we couldn't remove the directory because it
- // is not empty (or is current working directory). In this
- // case rmdir() will issue a warning when appropriate.
+ // Don't fail if we couldn't remove the directory because it is not empty
+ // (or is current working directory). In this case rmdir() will issue a
+ // warning when appropriate.
//
- target_state ts (rmdir (t.dir, t)
+ target_state ts (rmdir (t.dir, t, current_diag_noise ? 1 : 2)
? target_state::changed
: target_state::unchanged);