From 11dce6c2fa7dc39cd9e40c0fedda3280aa2757ad Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 30 Nov 2017 14:50:05 +0200 Subject: Implement module sidebuilds cleanup using scope operation callbacks --- build2/filesystem.txx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'build2/filesystem.txx') diff --git a/build2/filesystem.txx b/build2/filesystem.txx index fe56498..8e50592 100644 --- a/build2/filesystem.txx +++ b/build2/filesystem.txx @@ -2,6 +2,8 @@ // copyright : Copyright (c) 2014-2017 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file +#include // is_base_of + #include // work #include @@ -64,9 +66,9 @@ namespace build2 if (verb >= v) { if (verb >= 2) - text << "rm " << d; + text << "rmdir " << d; else if (verb) - text << "rm " << t; + text << (std::is_base_of::value ? "rmdir " : "rm ") << t; } }; -- cgit v1.1