aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/variable.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-05-22 14:56:49 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-05-22 14:56:49 +0200
commit0347acdf4c96c2d78d173c84adae99187887be62 (patch)
treeb622acb6e1419deecbec3d17a2243f5cb3f7cb78 /libbuild2/variable.cxx
parent026c827b978761bf0cb618ff9429df8508cd3190 (diff)
Add support for variable patterns in config.config.disfigure
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 8a063f7..0f2a3de 100644
--- a/libbuild2/variable.cxx
+++ b/libbuild2/variable.cxx
@@ -1797,6 +1797,14 @@ namespace build2
return m_.erase (var) != 0;
}
+ variable_map::const_iterator variable_map::
+ erase (const_iterator i)
+ {
+ assert (!global_ || ctx->phase == run_phase::load);
+
+ return const_iterator (m_.erase (i), *this);
+ }
+
// variable_pattern_map
//
variable_map& variable_pattern_map::