aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/config
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-04-21 10:35:13 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-04-22 09:02:03 +0200
commit1ac5458eede2b4b2d3bc98cde787348f70328361 (patch)
tree031115d69cc8db08ada7735966bb88d09e3716df /libbuild2/config
parent35c1c44bc5f75a327f5d879373a9683af2072a1a (diff)
Add another hash/save_environment() overload
Diffstat (limited to 'libbuild2/config')
-rw-r--r--libbuild2/config/utility.hxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/libbuild2/config/utility.hxx b/libbuild2/config/utility.hxx
index 8dc0650..4673d0c 100644
--- a/libbuild2/config/utility.hxx
+++ b/libbuild2/config/utility.hxx
@@ -139,6 +139,16 @@ namespace build2
}
inline void
+ save_environment (scope& rs, const cstrings& vars)
+ {
+ if (config_save_environment != nullptr)
+ {
+ for (const char* var: vars)
+ config_save_environment (rs, var);
+ }
+ }
+
+ inline void
save_environment (scope& rs, const strings& vars)
{
if (config_save_environment != nullptr)