aboutsummaryrefslogtreecommitdiff
path: root/build2/dist
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/dist
parent61617d7bb990f04970c6357d8e9a9095174d8fc4 (diff)
Add support for passing configuration hints via module init()
Diffstat (limited to 'build2/dist')
-rw-r--r--build2/dist/module9
-rw-r--r--build2/dist/module.cxx5
2 files changed, 11 insertions, 3 deletions
diff --git a/build2/dist/module b/build2/dist/module
index 61e44c3..984a969 100644
--- a/build2/dist/module
+++ b/build2/dist/module
@@ -18,8 +18,13 @@ namespace build2
dist_boot (scope&, const location&, unique_ptr<module_base>&);
extern "C" bool
- dist_init (
- scope&, scope&, const location&, unique_ptr<module_base>&, bool, bool);
+ dist_init (scope&,
+ scope&,
+ const location&,
+ unique_ptr<module_base>&,
+ bool,
+ bool,
+ const variable_map&);
}
}
diff --git a/build2/dist/module.cxx b/build2/dist/module.cxx
index 5ae05a4..58bfc6f 100644
--- a/build2/dist/module.cxx
+++ b/build2/dist/module.cxx
@@ -60,7 +60,8 @@ namespace build2
const location& l,
unique_ptr<module_base>&,
bool first,
- bool)
+ bool,
+ const variable_map& config_hints)
{
tracer trace ("dist::init");
@@ -73,6 +74,8 @@ namespace build2
const dir_path& out_root (r.out_path ());
l5 ([&]{trace << "for " << out_root;});
+ assert (config_hints.empty ()); // We don't known any hints.
+
// Register our wildcard rule. Do it explicitly for the alias
// to prevent something like insert<target>(dist_id, test_id)
// taking precedence.