From 7f9fda79a0e96bbeeaee4e6b05f9ae5e1738d88a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 16 Mar 2016 16:21:07 +0200 Subject: Change prerequisite cleaning "limit" from subdirectories to same project One day we will get this right. --- build2/algorithm.ixx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'build2/algorithm.ixx') diff --git a/build2/algorithm.ixx b/build2/algorithm.ixx index a405c30..3f0bab9 100644 --- a/build2/algorithm.ixx +++ b/build2/algorithm.ixx @@ -101,7 +101,11 @@ namespace build2 search_and_match_prerequisites (action a, target& t) { search_and_match_prerequisites ( - a, t, a.operation () != clean_id ? dir_path () : t.dir); + a, + t, + (a.operation () != clean_id + ? dir_path () + : t.root_scope ().out_path ())); } inline void @@ -114,7 +118,7 @@ namespace build2 // through groups since the group target should clean eveything // up. A bit of an optimization. // - search_and_match_prerequisites (a, t, t.dir); + search_and_match_prerequisites (a, t, t.root_scope ().out_path ()); } target_state -- cgit v1.1