From 6d7562a02cc6b6e45f2a43c7a29223e75e88c3df Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Wed, 2 Aug 2023 17:20:59 -0400 Subject: run_command: Remove useless node argument There is no need to pass it, we already have self.current_node. --- mesonbuild/programs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/programs.py') diff --git a/mesonbuild/programs.py b/mesonbuild/programs.py index 13b998193..beb5bc566 100644 --- a/mesonbuild/programs.py +++ b/mesonbuild/programs.py @@ -105,7 +105,7 @@ class ExternalProgram(mesonlib.HoldableObject): if not self.cached_version: raw_cmd = self.get_command() + ['--version'] if interpreter: - res = interpreter.run_command_impl(interpreter.current_node, (self, ['--version']), + res = interpreter.run_command_impl((self, ['--version']), {'capture': True, 'check': True, 'env': mesonlib.EnvironmentVariables()}, -- cgit v1.2.3