aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/variable.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-04-04 13:11:56 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-04-04 13:11:56 +0200
commit5e51d523e71231cb190e9ed981962df527f4ee7e (patch)
tree1ca26842d0629d23feb10c498364758a90f2dd68 /libbuild2/variable.cxx
parentb3bc26dc284cf73e97b88c9979d49368d07e686c (diff)
Add base functionality for hermetic build configurationshermetic
Diffstat (limited to 'libbuild2/variable.cxx')
-rw-r--r--libbuild2/variable.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/libbuild2/variable.cxx b/libbuild2/variable.cxx
index 917b9e7..efda63d 100644
--- a/libbuild2/variable.cxx
+++ b/libbuild2/variable.cxx
@@ -1759,6 +1759,14 @@ namespace build2
return pair<value&, bool> (r, p.second);
}
+ bool variable_map::
+ erase (const variable& var)
+ {
+ assert (!global_ || ctx->phase == run_phase::load);
+
+ return m_.erase (var) != 0;
+ }
+
// variable_type_map
//
lookup variable_type_map::