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 <philipp.zabel@gmail.com>pull/95/head
parent
8872dece0c
commit
56f1c125fa
|
@ -29,8 +29,8 @@ endif
|
||||||
|
|
||||||
git = find_program('git', native: true, required: false)
|
git = find_program('git', native: true, required: false)
|
||||||
if git.found()
|
if git.found()
|
||||||
git_describe = run_command([git, 'describe', '--tags', '--long'])
|
git_describe = run_command([git, 'describe', '--tags', '--long'], check: false)
|
||||||
git_branch = run_command([git, 'rev-parse', '--abbrev-ref', 'HEAD'])
|
git_branch = run_command([git, 'rev-parse', '--abbrev-ref', 'HEAD'], check: false)
|
||||||
if git_describe.returncode() == 0 and git_branch.returncode() == 0
|
if git_describe.returncode() == 0 and git_branch.returncode() == 0
|
||||||
c_args += '-DGIT_VERSION="@0@ (@1@)"'.format(
|
c_args += '-DGIT_VERSION="@0@ (@1@)"'.format(
|
||||||
git_describe.stdout().strip(),
|
git_describe.stdout().strip(),
|
||||||
|
|
Loading…
Reference in New Issue