aboutsummaryrefslogtreecommitdiff
path: root/build/rule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build/rule.cxx')
-rw-r--r--build/rule.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/build/rule.cxx b/build/rule.cxx
index 03dd056..e912b2e 100644
--- a/build/rule.cxx
+++ b/build/rule.cxx
@@ -92,7 +92,7 @@ namespace build
return a == perform_update_id
? &perform_update
- : t.prerequisites.empty () ? noop_recipe : default_recipe;
+ : t.has_prerequisites () ? default_recipe : noop_recipe;
}
target_state path_rule::
@@ -211,7 +211,7 @@ namespace build
// First update prerequisites (e.g. create parent directories)
// then create this directory.
//
- if (!t.prerequisites.empty ())
+ if (t.has_prerequisites ())
ts = execute_prerequisites (a, t);
const path& d (t.dir); // Everything is in t.dir.
@@ -253,7 +253,7 @@ namespace build
target_state ts (target_state::unchanged);
- if (!t.prerequisites.empty ())
+ if (t.has_prerequisites ())
ts = reverse_execute_prerequisites (a, t);
// If we couldn't remove the directory, return postponed meaning