From be34c36f7b9ab7d2fd0d3a7bc2a0f5f62ff4fe67 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 27 Aug 2019 14:43:37 +0200 Subject: Propagate global var overrides to module build context --- libbuild2/module.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libbuild2/module.cxx') diff --git a/libbuild2/module.cxx b/libbuild2/module.cxx index 63ff24c..9f951c3 100644 --- a/libbuild2/module.cxx +++ b/libbuild2/module.cxx @@ -146,16 +146,16 @@ namespace build2 assert (*ctx.module_context_storage == nullptr); - // Since we are using the same scheduler, it makes sense to reuse - // the same mutex shards. Also disable nested module context for - // good measure. + // Since we are using the same scheduler, it makes sense to reuse the + // same mutex shards. Also disable nested module context for good + // measure. // ctx.module_context_storage->reset ( new context (ctx.sched, - false, /* dry_run */ + false, /* dry_run */ ctx.keep_going, - {}, /* cmd_vars */ - nullopt)); /* module_context */ + ctx.global_var_overrides, /* cmd_vars */ + nullopt)); /* module_context */ // We use the same context for building any nested modules that // might be required while building modules. -- cgit v1.1