From e780efae037f72d813cd94a203ac2f74bb76a720 Mon Sep 17 00:00:00 2001 From: Adrian Perez de Castro Date: Thu, 12 Sep 2024 13:16:53 +0300 Subject: [PATCH] meson: Explicitly set run_command() check parameter Set the "check" parameter in run_command() calls, instead of relying on the default value, which might get changed at some point in the fuiture. This silences the folloeing Meson warning: WARNING: You should add the boolean check kwarg to the run_command call. It currently defaults to false, but it will default to true in future releases of meson. See also: https://github.com/mesonbuild/meson/issues/9300 --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index fb06475..7ea954d 100644 --- a/meson.build +++ b/meson.build @@ -8,7 +8,7 @@ project('wpebackend-fdo', ['c', 'cpp'], 'cpp_std=c++11', ], license: 'BSD-2-Clause', - version: run_command(join_paths('scripts', 'version.py')).stdout().strip(), + version: run_command(join_paths('scripts', 'version.py'), check: true).stdout().strip(), ) # This refers to the API level provided. This is modified only with major, @@ -109,7 +109,7 @@ endif wayland_scanner = find_program(wayland_scanner_candidates, native: true) -r = run_command(wayland_scanner, '--version') +r = run_command(wayland_scanner, '--version', check: false) assert(r.returncode() == 0, '''Cannot execute wayland-scanner: ''' + r.stderr())