diff options
Diffstat (limited to 'mesonbuild/cmake/interpreter.py')
| -rw-r--r-- | mesonbuild/cmake/interpreter.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/cmake/interpreter.py b/mesonbuild/cmake/interpreter.py index 88ab13fe3..d22b572dd 100644 --- a/mesonbuild/cmake/interpreter.py +++ b/mesonbuild/cmake/interpreter.py @@ -667,6 +667,7 @@ class ConverterCustomTarget: commands = [] # type: T.List[T.List[T.Union[str, ConverterTarget]]] for curr_cmd in self._raw_target.command: assert isinstance(curr_cmd, list) + assert curr_cmd[0] != '', "An empty string is not a valid executable" cmd = [] # type: T.List[T.Union[str, ConverterTarget]] for j in curr_cmd: |
