From 4bf1a352cc3626873ed69c1f5b69c34730cdf2b2 Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Fri, 22 Feb 2019 11:30:29 +0100 Subject: mconf: Fixed crash for variables in targets (closes #4960) --- mesonbuild/ast/introspection.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mesonbuild/ast') diff --git a/mesonbuild/ast/introspection.py b/mesonbuild/ast/introspection.py index 0917015..f0ff43f 100644 --- a/mesonbuild/ast/introspection.py +++ b/mesonbuild/ast/introspection.py @@ -142,10 +142,11 @@ class IntrospectionInterpreter(AstInterpreter): }] def build_target(self, node, args, kwargs, targetclass): + args = self.flatten_args(args) if not args: return kwargs = self.flatten_kwargs(kwargs, True) - name = self.flatten_args(args)[0] + name = args[0] srcqueue = [node] if 'sources' in kwargs: srcqueue += kwargs['sources'] -- cgit v1.1