From 5f924ea1926fe17acf699a43713b7f5881e9d30d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 26 Jun 2016 17:05:07 +0200 Subject: Add support for passing configuration hints via module init() --- build2/module.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'build2/module.cxx') diff --git a/build2/module.cxx b/build2/module.cxx index 1334689..e1e8afd 100644 --- a/build2/module.cxx +++ b/build2/module.cxx @@ -54,7 +54,8 @@ namespace build2 scope& rs, scope& bs, const location& loc, - bool opt) + bool opt, + const variable_map& hints) { // First see if this modules has already been loaded for this project. // @@ -96,7 +97,8 @@ namespace build2 } bool l (i != lm.end ()); - bool c (l && i->second.init (rs, bs, loc, i->second.module, f, opt)); + bool c (l && + i->second.init (rs, bs, loc, i->second.module, f, opt, hints)); const variable& lv (var_pool.insert (name + ".loaded", false, -- cgit v1.1