path: root/build2/b.cxx
diff options
authorBoris Kolpackov <boris@codesynthesis.com>2016-04-23 09:17:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-04-23 09:17:48 +0200
commit1b1d1434539c4c198caab4f3a45ade9e6827427b (patch)
treeea16012a180341af8d0771e6febdcd8ecb4d4714 /build2/b.cxx
parentdecfe7243b6eedb4ed3d1ac5005345745e5fce61 (diff)
Revert back to using root scope in src_out()/out_src()
Relaxing it to base was not wise since we can have "sideways" prerequisites (those from parallel directories such as brep's ../web/*).
Diffstat (limited to 'build2/b.cxx')
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/b.cxx b/build2/b.cxx
index dcf2cfe..1377d5b 100644
--- a/build2/b.cxx
+++ b/build2/b.cxx
@@ -879,7 +879,7 @@ main (int argc, char* argv[])
// Figure out if this target is in the src tree.
dir_path out (ts.out_base != ts.src_base && d.sub (ts.src_base)
- ? out_src (d, ts.out_base, ts.src_base)
+ ? out_src (d, rs)
: dir_path ());
mif->search (rs, target_key {ti, &d, &out, &tn.value, e}, l, tgs);