aboutsummaryrefslogtreecommitdiff
path: root/build2/file.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-09-03 16:45:01 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-09-03 16:45:01 +0200
commit8cbe1701b8461f56ac02b73ede14c886740fb305 (patch)
tree957ec808f1933737204396a821acc9b750ee22f7 /build2/file.hxx
parent53105890d75789c81adbb3d781eff9ebd7110222 (diff)
Cleanup project src/out_root/base discovery logic
Specifically, we no longer support specifying the out_base explicitly and assuming work is src_base.
Diffstat (limited to 'build2/file.hxx')
-rw-r--r--build2/file.hxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/build2/file.hxx b/build2/file.hxx
index 7bfae14..c394818 100644
--- a/build2/file.hxx
+++ b/build2/file.hxx
@@ -45,13 +45,12 @@ namespace build2
find_src_root (const dir_path&);
// The same as above but for project's out. Note that we also check whether
- // a directory happens to be src_root, in case this is an in-tree build. The
- // second argument is the out flag that is set to true if this is src_root.
- // Note that if the input is normalized/actualized, then the output will be
- // as well.
+ // a directory happens to be src_root, in case this is an in-tree build with
+ // the result returned as the second half of the pair. Note also that if the
+ // input is normalized/actualized, then the output will be as well.
//
- dir_path
- find_out_root (const dir_path&, bool* src = nullptr);
+ pair<dir_path, bool>
+ find_out_root (const dir_path&);
// If buildfile is '-', then read from STDIN.
//