From 73a5e45ba1297a1387b84783010ba76f01030a69 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 20 Apr 2024 00:14:11 +0200 Subject: [PATCH] meson: Specify check arg in run_command() Fixes the following 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 e1a3471..438b36a 100644 --- a/meson.build +++ b/meson.build @@ -24,8 +24,8 @@ c_args = [ version = '"@0@"'.format(meson.project_version()) git = find_program('git', native: true, required: false) if git.found() - git_commit = run_command([git, 'rev-parse', '--short', 'HEAD']) - git_branch = run_command([git, 'rev-parse', '--abbrev-ref', 'HEAD']) + git_commit = run_command([git, 'rev-parse', '--short', 'HEAD'], check: false) + git_branch = run_command([git, 'rev-parse', '--abbrev-ref', 'HEAD'], check: false) if git_commit.returncode() == 0 and git_branch.returncode() == 0 version = '"v@0@-@1@ (@2@)"'.format( meson.project_version(),