aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/parser.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/parser.hxx
parent5f768f4f3e6e9e1b7310a0e8b09a97bf6d0115ea (diff)
Add support for propagating project environment
Diffstat (limited to 'libbuild2/parser.hxx')
-rw-r--r--libbuild2/parser.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/libbuild2/parser.hxx b/libbuild2/parser.hxx
index 3efb94a..915e34b 100644
--- a/libbuild2/parser.hxx
+++ b/libbuild2/parser.hxx
@@ -528,9 +528,10 @@ namespace build2
// Switch to a new current scope. Note that this function might also have
// to switch to a new root scope if the new current scope is in another
- // project. So both must be saved and restored.
+ // project. So both must be saved and restored. In case of a new root, it
+ // also switches to the new project's environment.
//
- void
+ auto_project_env
switch_scope (const dir_path& out_base);
void