aboutsummaryrefslogtreecommitdiff
path: root/build/rule.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-24 12:29:20 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-24 12:29:20 +0200
commit2a0f9e035f673f1ee387924501a31990de37f18d (patch)
treeb8e55ab74bc88b788e99d8649219b931b80432d5 /build/rule.cxx
parent4c44c914d898af53152addad5530504548175e85 (diff)
Implement lib/liba/libso{} target group, shared/static library build
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