From 56f1c125fa77da10b4b40ca97d978d8903207ff8 Mon Sep 17 00:00:00 2001 From: Philipp Zabel Date: Wed, 3 May 2023 10:50:14 +0200 Subject: [PATCH] meson: Fix Meson warning about missing check kwarg in run_command() calls Fixes the following 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 Signed-off-by: Philipp Zabel --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 94f92c0..93557c9 100644 --- a/meson.build +++ b/meson.build @@ -29,8 +29,8 @@ endif git = find_program('git', native: true, required: false) if git.found() - git_describe = run_command([git, 'describe', '--tags', '--long']) - git_branch = run_command([git, 'rev-parse', '--abbrev-ref', 'HEAD']) + git_describe = run_command([git, 'describe', '--tags', '--long'], check: false) + git_branch = run_command([git, 'rev-parse', '--abbrev-ref', 'HEAD'], check: false) if git_describe.returncode() == 0 and git_branch.returncode() == 0 c_args += '-DGIT_VERSION="@0@ (@1@)"'.format( git_describe.stdout().strip(),