aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/file.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-03-26 16:03:29 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-04-02 12:07:38 +0200
commitb3bc26dc284cf73e97b88c9979d49368d07e686c (patch)
tree59ab65ede17e84b2fa463a4d27eaaa92fd0f8b85 /libbuild2/file.hxx
parent5f768f4f3e6e9e1b7310a0e8b09a97bf6d0115ea (diff)
Add support for propagating project environment
Diffstat (limited to 'libbuild2/file.hxx')
-rw-r--r--libbuild2/file.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/libbuild2/file.hxx b/libbuild2/file.hxx
index 0c4ad62..1c8e57e 100644
--- a/libbuild2/file.hxx
+++ b/libbuild2/file.hxx
@@ -145,6 +145,10 @@ namespace build2
// false or the new scope is not in any project, then NULL is returned in
// second.
//
+ // Note that if switching the scope involved switching the project, then you
+ // may also need to switch to the new project's environment (see
+ // root_extra::environment).
+ //
LIBBUILD2_SYMEXPORT pair<scope&, scope*>
switch_scope (scope& root, const dir_path& out_base, bool project = true);