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/dist/module | 9 +++++++-- build2/dist/module.cxx | 5 ++++- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'build2/dist') 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&); extern "C" bool - dist_init ( - scope&, scope&, const location&, unique_ptr&, bool, bool); + dist_init (scope&, + scope&, + const location&, + unique_ptr&, + 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&, 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(dist_id, test_id) // taking precedence. -- cgit v1.1