From 1ac5458eede2b4b2d3bc98cde787348f70328361 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 21 Apr 2021 10:35:13 +0200 Subject: Add another hash/save_environment() overload --- libbuild2/config/utility.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libbuild2/config/utility.hxx') 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) -- cgit v1.1