From ca41ca8f9a6b21588248e5fee1a013363f3f52a8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 13 Mar 2015 14:34:24 +0200 Subject: Add support for "first" and "last" execution modes --- build/rule.cxx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'build/rule.cxx') diff --git a/build/rule.cxx b/build/rule.cxx index eb7f5b4..c6bfe7a 100644 --- a/build/rule.cxx +++ b/build/rule.cxx @@ -18,7 +18,6 @@ using namespace std; namespace build { operation_rule_map rules; - const target_rule_map* current_rules; // path_rule // @@ -247,11 +246,6 @@ namespace build target_state fsdir_rule:: perform_clean (action a, target& t) { - // Wait until the last dependent to get an empty directory. - // - if (t.dependents != 0) - return target_state::postponed; - // The reverse order of update: first delete this directory, // then clean prerequisites (e.g., delete parent directories). // @@ -306,7 +300,7 @@ namespace build target_state ts (target_state::unchanged); if (!t.prerequisites.empty ()) - ts = execute_prerequisites (a, t); + ts = reverse_execute_prerequisites (a, t); // If we couldn't remove the directory, return postponed meaning // that the operation could not be performed at this time. -- cgit v1.1