aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/programs.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/programs.py')
-rw-r--r--mesonbuild/programs.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/mesonbuild/programs.py b/mesonbuild/programs.py
index 48593cb..eefdc74 100644
--- a/mesonbuild/programs.py
+++ b/mesonbuild/programs.py
@@ -103,8 +103,7 @@ class ExternalProgram(mesonlib.HoldableObject):
def get_version(self, interpreter: 'Interpreter') -> str:
if not self.cached_version:
raw_cmd = self.get_command() + ['--version']
- cmd: T.List[T.Union[str, ExternalProgram]] = [self, '--version']
- res = interpreter.run_command_impl(interpreter.current_node, cmd, {}, True)
+ res = interpreter.run_command_impl(interpreter.current_node, (self, ['--version']), {}, True)
if res.returncode != 0:
raise mesonlib.MesonException(f'Running {raw_cmd!r} failed')
output = res.stdout.strip()