diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-04-13 09:20:47 +0200 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2019-04-13 09:51:15 +0000 |
commit | c04651fe241ebaa4a32e49590416b0bbabebc5fa (patch) | |
tree | a378f0436233ad2e7ba622c90bf86a20c04c1a57 /mesonbuild/ast/interpreter.py | |
parent | eaed4aecbe218018feed73192e6fc25e54034d53 (diff) | |
download | meson-c04651fe241ebaa4a32e49590416b0bbabebc5fa.zip meson-c04651fe241ebaa4a32e49590416b0bbabebc5fa.tar.gz meson-c04651fe241ebaa4a32e49590416b0bbabebc5fa.tar.bz2 |
mintro: Fix set_variable plus assign bug (closes #5256)
Diffstat (limited to 'mesonbuild/ast/interpreter.py')
-rw-r--r-- | mesonbuild/ast/interpreter.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/ast/interpreter.py b/mesonbuild/ast/interpreter.py index f1602c0..a82ba5d 100644 --- a/mesonbuild/ast/interpreter.py +++ b/mesonbuild/ast/interpreter.py @@ -171,6 +171,7 @@ class AstInterpreter(interpreterbase.InterpreterBase): assert(isinstance(node, mparser.PlusAssignmentNode)) if node.var_name not in self.assignments: self.assignments[node.var_name] = [] + self.assign_vals[node.var_name] = [] self.assignments[node.var_name] += [node.value] # Save a reference to the value node if hasattr(node.value, 'ast_id'): self.reverse_assignment[node.value.ast_id] = node |