aboutsummaryrefslogtreecommitdiff
path: root/build2/config
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-06-26 17:05:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-06-26 17:05:07 +0200
commit5f924ea1926fe17acf699a43713b7f5881e9d30d (patch)
treeeccff3428e8a1b689e79b07088fc00b520a9485b /build2/config
parent61617d7bb990f04970c6357d8e9a9095174d8fc4 (diff)
Add support for passing configuration hints via module init()
Diffstat (limited to 'build2/config')
-rw-r--r--build2/config/module9
-rw-r--r--build2/config/module.cxx5
2 files changed, 11 insertions, 3 deletions
diff --git a/build2/config/module b/build2/config/module
index 6012442..912ab57 100644
--- a/build2/config/module
+++ b/build2/config/module
@@ -32,8 +32,13 @@ namespace build2
config_boot (scope&, const location&, unique_ptr<module_base>&);
extern "C" bool
- config_init (
- scope&, scope&, const location&, unique_ptr<module_base>&, bool, bool);
+ config_init (scope&,
+ scope&,
+ const location&,
+ unique_ptr<module_base>&,
+ bool,
+ bool,
+ const variable_map&);
}
}
diff --git a/build2/config/module.cxx b/build2/config/module.cxx
index 16eabe9..70301c5 100644
--- a/build2/config/module.cxx
+++ b/build2/config/module.cxx
@@ -59,7 +59,8 @@ namespace build2
const location& l,
unique_ptr<module_base>& mod,
bool first,
- bool)
+ bool,
+ const variable_map& config_hints)
{
tracer trace ("config::init");
@@ -71,6 +72,8 @@ namespace build2
l5 ([&]{trace << "for " << root.out_path ();});
+ assert (config_hints.empty ()); // We don't known any hints.
+
// Only create the module if we are configuring.
//
if (current_mif->id == configure_id)