aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/config/module.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-03-25 10:24:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-03-26 12:14:30 +0200
commit5f768f4f3e6e9e1b7310a0e8b09a97bf6d0115ea (patch)
treedcc37234fa0fbd2340015b9a29ce7a5bfa403462 /libbuild2/config/module.cxx
parenta85d3e26b4915f60869a69e71e16800087cf2e8a (diff)
Implement config.config.environment storage
Diffstat (limited to 'libbuild2/config/module.cxx')
-rw-r--r--libbuild2/config/module.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/libbuild2/config/module.cxx b/libbuild2/config/module.cxx
index bf68c4e..c84b1fa 100644
--- a/libbuild2/config/module.cxx
+++ b/libbuild2/config/module.cxx
@@ -12,7 +12,9 @@ namespace build2
namespace config
{
bool module::
- save_variable (const variable& var, optional<uint64_t> flags)
+ save_variable (const variable& var,
+ optional<uint64_t> flags,
+ save_variable_function* save)
{
const string& n (var.name);
@@ -43,7 +45,7 @@ namespace build2
return false;
}
- sv.push_back (saved_variable {var, flags});
+ sv.push_back (saved_variable {var, flags, save});
return true;
}