From 29f8159583d2b02efa2afeaa58082f57222c943d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 3 Dec 2015 14:37:22 +0200 Subject: Add ability for module to remember that it is unconfigured A module can set and then check the config.*.configured special variable to false. --- build/config/utility | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'build/config/utility') diff --git a/build/config/utility b/build/config/utility index ece7a88..ee5f50b 100644 --- a/build/config/utility +++ b/build/config/utility @@ -83,13 +83,16 @@ namespace build return optional_absolute (root, var_pool.find (var)); } - // Check whether there are any variables specified from the - // config namespace. The idea is that we can check if there - // are any, say, config.install.* values. If there are none, - // then we can assume this functionality is not (yet) used - // and omit writing a whole bunch of NULL config.install.* - // values to the config.build file . We call it omitted/ - // delayed configuration. + // Check whether there are any variables specified from the config + // namespace. The idea is that we can check if there are any, say, + // config.install.* values. If there are none, then we can assume + // this functionality is not (yet) used and omit writing a whole + // bunch of NULL config.install.* values to the config.build file. + // We call it omitted/delayed configuration. + // + // Note that this function detects and ignores the special + // config.*.configured variable which may be used by a module to + // "remember" that it is unconfigured. // bool specified (scope& root, const std::string& ns); -- cgit v1.1