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/install/module | 9 +++++++-- build2/install/module.cxx | 5 ++++- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'build2/install') diff --git a/build2/install/module b/build2/install/module index f81b6ac..b2a3301 100644 --- a/build2/install/module +++ b/build2/install/module @@ -18,8 +18,13 @@ namespace build2 install_boot (scope&, const location&, unique_ptr&); extern "C" bool - install_init ( - scope&, scope&, const location&, unique_ptr&, bool, bool); + install_init (scope&, + scope&, + const location&, + unique_ptr&, + bool, + bool, + const variable_map&); } } diff --git a/build2/install/module.cxx b/build2/install/module.cxx index 15c6ea8..6a7e500 100644 --- a/build2/install/module.cxx +++ b/build2/install/module.cxx @@ -118,7 +118,8 @@ namespace build2 const location& l, unique_ptr&, bool first, - bool) + bool, + const variable_map& config_hints) { tracer trace ("install::init"); @@ -131,6 +132,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. + // Enter module variables. // // Note that the set_dir() calls below enter some more. -- cgit v1.1