From c970d656b17c74f81ba83a994cb215b1450343ed Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 11 Sep 2016 15:02:48 +0300 Subject: All_args should always be a list. Closes #778. --- mesonbuild/interpreter.py | 2 ++ test cases/common/58 run target/meson.build | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index 1ef413377..958495006 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -1877,6 +1877,8 @@ class Interpreter(): if not 'command' in kwargs: raise InterpreterException('Missing "command" keyword argument') all_args = kwargs['command'] + if not isinstance(all_args, list): + all_args = [all_args] deps = kwargs.get('depends', []) if not isinstance(deps, list): deps = [deps] diff --git a/test cases/common/58 run target/meson.build b/test cases/common/58 run target/meson.build index 0ab41b3f5..5824c7469 100644 --- a/test cases/common/58 run target/meson.build +++ b/test cases/common/58 run target/meson.build @@ -42,4 +42,4 @@ run_target('ct_in_arg', # execute. Obviously this will not work as hex is not an # executable but test that the output is generated correctly. run_target('donotrunme', - command : [hex]) + command : hex) -- cgit v1.2.3