aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/ast
diff options
context:
space:
mode:
authorTristan Partin <tristan@partin.io>2021-08-10 18:02:39 -0500
committerXavier Claessens <xclaesse@gmail.com>2021-08-16 14:05:13 -0400
commit1dc13e9951a5ce38edb93718ab5ac7b1bf6616d0 (patch)
tree2e1c5181e7f19634d51c0ea18f16ca27b8797559 /mesonbuild/ast
parenta2f110ff771cf94d9d13d1e1d32de99a74787cf2 (diff)
downloadmeson-1dc13e9951a5ce38edb93718ab5ac7b1bf6616d0.zip
meson-1dc13e9951a5ce38edb93718ab5ac7b1bf6616d0.tar.gz
meson-1dc13e9951a5ce38edb93718ab5ac7b1bf6616d0.tar.bz2
Add unset_variable()
This should be useful for helping to control variable scope within Meson. CMake has something similar for controlling scope.
Diffstat (limited to 'mesonbuild/ast')
-rw-r--r--mesonbuild/ast/interpreter.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/ast/interpreter.py b/mesonbuild/ast/interpreter.py
index 19b3a1d..0299014 100644
--- a/mesonbuild/ast/interpreter.py
+++ b/mesonbuild/ast/interpreter.py
@@ -127,6 +127,7 @@ class AstInterpreter(InterpreterBase):
'subdir': self.func_subdir,
'set_variable': self.func_do_nothing,
'get_variable': self.func_do_nothing,
+ 'unset_variable': self.func_do_nothing,
'is_disabler': self.func_do_nothing,
'is_variable': self.func_do_nothing,
'disabler': self.func_do_nothing,