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/cli/module.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'build2/cli/module.cxx') diff --git a/build2/cli/module.cxx b/build2/cli/module.cxx index 478c8a8..13325d9 100644 --- a/build2/cli/module.cxx +++ b/build2/cli/module.cxx @@ -31,11 +31,14 @@ namespace build2 const location& loc, unique_ptr&, bool first, - bool optional) + bool optional, + const variable_map& config_hints) { tracer trace ("cli::init"); l5 ([&]{trace << "for " << base.out_path ();}); + assert (config_hints.empty ()); // We don't known any hints. + // Make sure the cxx module has been loaded since we need its targets // types (?xx{}). Note that we don't try to load it ourselves because of // the non-trivial variable merging semantics. So it is better to let -- cgit v1.1