aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/config
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-04-20 11:19:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-04-20 11:26:05 +0200
commit0353b231d51ab7ea5ead98ac838e7c2ba1b0df89 (patch)
treec5b0794512587a1062de97153df6f0b236f928d3 /libbuild2/config
parent834152a6e3f3e8459b53e49370bfdd82685a700d (diff)
Track changes to environment in cc rules
Diffstat (limited to 'libbuild2/config')
-rw-r--r--libbuild2/config/utility.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbuild2/config/utility.hxx b/libbuild2/config/utility.hxx
index 382c22f..8dc0650 100644
--- a/libbuild2/config/utility.hxx
+++ b/libbuild2/config/utility.hxx
@@ -112,6 +112,8 @@ namespace build2
// directly). The module's load() function is a natural place to do
// that.
//
+ // See also build2::hash_environment().
+ //
inline void
save_environment (scope& rs, const string& var)
{
@@ -146,7 +148,7 @@ namespace build2
}
}
- // A NULL-terminated list of variables.
+ // A NULL-terminated list of variables (may itself be NULL).
//
inline void
save_environment (scope& rs, const char* const* vars)