aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/context.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/context.cxx')
-rw-r--r--libbuild2/context.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbuild2/context.cxx b/libbuild2/context.cxx
index 841cc1d..292feed 100644
--- a/libbuild2/context.cxx
+++ b/libbuild2/context.cxx
@@ -60,7 +60,8 @@ namespace build2
bool dr,
bool kg,
const strings& cmd_vars,
- optional<context*> mc)
+ optional<context*> mc,
+ const loaded_modules_lock* ml)
: data_ (new data (*this)),
sched (s),
mutexes (ms),
@@ -76,6 +77,7 @@ namespace build2
global_target_types (data_->global_target_types),
global_override_cache (data_->global_override_cache),
global_var_overrides (data_->global_var_overrides),
+ modules_lock (ml),
module_context (mc ? *mc : nullptr),
module_context_storage (mc
? optional<unique_ptr<context>> (nullptr)