From ef130e855b5ac0f4acbb8b5b6fcd14069df8afe5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 3 Jun 2022 12:23:34 +0200 Subject: Reset value::extra on variable_map value change/version increment The reset on each modification semantics is used to implement the default value distinction as currently done in the config module but later probably will be done for ?= and $origin(). --- libbuild2/parser.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbuild2/parser.cxx') diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx index 19c1751..cc3fba7 100644 --- a/libbuild2/parser.cxx +++ b/libbuild2/parser.cxx @@ -4532,7 +4532,7 @@ namespace build2 // Note that the pattern is preserved if insert fails with regex_error. // p = scope_->target_vars[ptt].insert (pt, move (pat)).insert ( - var, kind == type::assign); + var, kind == type::assign, false /* reset_extra */); } catch (const regex_error& e) { -- cgit v1.1