aboutsummaryrefslogtreecommitdiff
path: root/build2/variable.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-11-01 13:00:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-11-01 13:00:16 +0200
commiteacf7f7ccd40a56d1fe761d3d30ced6c6acd58da (patch)
tree841a87d57720704654e8e8fa94cecd05c17b6cfa /build2/variable.hxx
parent8ba507252cb932023d16e5d4dfef267c039feb78 (diff)
Add support for rule-specific variables, use to fix cc.type data race
Diffstat (limited to 'build2/variable.hxx')
-rw-r--r--build2/variable.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/build2/variable.hxx b/build2/variable.hxx
index 7a0e531..7dc3d1a 100644
--- a/build2/variable.hxx
+++ b/build2/variable.hxx
@@ -1351,6 +1351,9 @@ namespace build2
explicit
variable_map (bool global = false): global_ (global) {}
+ void
+ clear () {m_.clear ();}
+
private:
friend class variable_type_map;