From 2a0f9e035f673f1ee387924501a31990de37f18d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 24 Apr 2015 12:29:20 +0200 Subject: Implement lib/liba/libso{} target group, shared/static library build --- build/rule.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build/rule.cxx') 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 -- cgit v1.1