aboutsummaryrefslogtreecommitdiff
path: root/build2/algorithm.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-03-16 16:21:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-03-16 16:21:07 +0200
commit7f9fda79a0e96bbeeaee4e6b05f9ae5e1738d88a (patch)
tree7a5594759f62f9136db32845fd4baf7268805d7a /build2/algorithm.ixx
parentc76ff457079bf5901a6bb55377c14aeee856a354 (diff)
Change prerequisite cleaning "limit" from subdirectories to same project
One day we will get this right.
Diffstat (limited to 'build2/algorithm.ixx')
-rw-r--r--build2/algorithm.ixx8
1 files changed, 6 insertions, 2 deletions
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