build: Explicitly pass check kwarg to run_command()

The default value will change from `false` to `true` in future Meson
releases, so let’s be explicit.

We don’t want to check the exit status of the program in this case, as
we parse the `--help` output instead.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3640>
This commit is contained in:
Philip Withnall 2024-03-04 16:56:16 +00:00 committed by Marge Bot
parent 22b8af263b
commit a8be959cd8

View File

@ -593,7 +593,7 @@ if have_xwayland
if xwayland_dep.found()
xwayland_supports_initfd = xwayland_dep.get_variable('have_initfd') == 'true'
else
xwayland_options = run_command(xwayland_path, '-help')
xwayland_options = run_command(xwayland_path, '-help', check: false)
xwayland_supports_initfd = xwayland_options.stderr().contains('-initfd')
endif