aboutsummaryrefslogtreecommitdiff
path: root/build2/config/operation.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/config/operation.cxx')
-rw-r--r--build2/config/operation.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/build2/config/operation.cxx b/build2/config/operation.cxx
index 1bd5d4d..cdf2f9a 100644
--- a/build2/config/operation.cxx
+++ b/build2/config/operation.cxx
@@ -641,8 +641,11 @@ namespace build2
// Clean up the directories.
//
+ // Note: try to remove the root/ hooks directory if it is empty.
+ //
+ r = rmdir (out_root / root_dir, 2) || r;
r = rmdir (out_root / bootstrap_dir, 2) || r;
- r = rmdir (out_root / build_dir, 2) || r;
+ r = rmdir (out_root / build_dir, 2) || r;
switch (rmdir (out_root))
{