aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/module.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/module.cxx')
-rw-r--r--libbuild2/module.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbuild2/module.cxx b/libbuild2/module.cxx
index eb4395d..fc50aef 100644
--- a/libbuild2/module.cxx
+++ b/libbuild2/module.cxx
@@ -412,8 +412,10 @@ namespace build2
//
ctx.module_context->modules_lock = ctx.modules_lock;
- // "Switch" to the module context.
+ // Clear current project's environment and "switch" to the module
+ // context.
//
+ auto_thread_env penv (nullptr);
context& ctx (*bs.ctx.module_context);
// Mark the queue so that we don't work any tasks that may already be