build: set check: false in run_command()

Fixes this 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
This commit is contained in:
Simon Ser 2022-01-31 14:38:12 +01:00
parent 718cfee03c
commit 429107e193

View file

@ -72,7 +72,7 @@ glsl_compiler = find_program('glslangValidator', native: true)
# Use --depfile to rebuild shaders when included files have changed. Sadly debian based
# distros don't have up-to-date glslang so we need to check for support first.
if run_command(glsl_compiler, ['--version', '--depfile', 'dummy.dep']).returncode() == 0
if run_command(glsl_compiler, ['--version', '--depfile', 'dummy.dep'], check: false).returncode() == 0
glsl_generator = generator(
glsl_compiler,
output : ['@BASENAME@.h'],