diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-04-02 11:12:10 +0200 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-04-02 11:21:05 +0200 |
commit | 1937bbafac07df48e78fea96a8c3c086db564574 (patch) | |
tree | aeef1d51c9b02f37ba6cc5d008367505dbe3b2af /mesonbuild/ast/introspection.py | |
parent | 75219989ca468923142738d93df8aef64e897b8e (diff) | |
download | meson-1937bbafac07df48e78fea96a8c3c086db564574.zip meson-1937bbafac07df48e78fea96a8c3c086db564574.tar.gz meson-1937bbafac07df48e78fea96a8c3c086db564574.tar.bz2 |
mintro: Fix crash when required is a function (closes #5177)
Diffstat (limited to 'mesonbuild/ast/introspection.py')
-rw-r--r-- | mesonbuild/ast/introspection.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/ast/introspection.py b/mesonbuild/ast/introspection.py index 5745d29..fd7b412 100644 --- a/mesonbuild/ast/introspection.py +++ b/mesonbuild/ast/introspection.py @@ -142,6 +142,8 @@ class IntrospectionInterpreter(AstInterpreter): condition_level = node.condition_level if hasattr(node, 'condition_level') else 0 if isinstance(required, ElementaryNode): required = required.value + if not isinstance(required, bool): + required = False self.dependencies += [{ 'name': name, 'required': required, |