From e9d961e316a95f5acb03ac2d151e92c2f8a470d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Tue, 1 Nov 2022 19:20:12 +0100 Subject: [PATCH] meson: Simplify run_command() By moving to the new API in Meson 0.47. This also means we avoid a deprecation warning. --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 12c283e..582d2af 100644 --- a/meson.build +++ b/meson.build @@ -4,9 +4,9 @@ project('fadec', ['c'], default_options: ['warning_level=3', 'c_std=c11'], python3 = find_program('python3') # Check Python version -py_version_res = run_command(python3, ['--version']) +py_version_res = run_command(python3, ['--version'], check: true) py_version = py_version_res.stdout().split(' ')[1] -if py_version_res.returncode() != 0 or not py_version.version_compare('>=3.6') +if not py_version.version_compare('>=3.6') error('Python 3.6 required, got @0@'.format(py_version)) endif