From b3bc26dc284cf73e97b88c9979d49368d07e686c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 26 Mar 2021 16:03:29 +0200 Subject: Add support for propagating project environment --- libbuild2/adhoc-rule-cxx.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libbuild2/adhoc-rule-cxx.cxx') diff --git a/libbuild2/adhoc-rule-cxx.cxx b/libbuild2/adhoc-rule-cxx.cxx index 4bf67f0..92af269 100644 --- a/libbuild2/adhoc-rule-cxx.cxx +++ b/libbuild2/adhoc-rule-cxx.cxx @@ -291,8 +291,10 @@ namespace build2 create_module_context (ctx, loc); } - // "Switch" to the module context. + // Clear current project's environment and "switch" to the module + // context. // + auto_thread_env penv (nullptr); context& ctx (*t.ctx.module_context); // Mark the queue so that we don't work any tasks that may already be -- cgit v1.1