From b510f4a9cbd3abea5f0ee8d4c4fa78eaa03720d9 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Wed, 28 Jun 2023 14:20:16 +0100 Subject: [PATCH] build: Avoid Meson warning for run_command() without check Apparently the old behaviour was to silently succeed if program execution failed. Setting check: true not only avoids a Meson deprecation warning for not passing it, but gives us a more clear indication what goes on when, e.g. breathe doesn't run. Signed-off-by: Daniel Stone --- doc/sphinx/meson.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/sphinx/meson.build b/doc/sphinx/meson.build index 27fa7c0b..45d04311 100644 --- a/doc/sphinx/meson.build +++ b/doc/sphinx/meson.build @@ -3,9 +3,9 @@ doxygen = find_program('doxygen', required: true) dot = find_program('dot', required: true) breathe = find_program('breathe-apidoc', required: true) -sphinx_c = run_command(sphinx, '--version') -breathe_c = run_command(breathe, '--version') -doxygen_c = run_command(doxygen, '--version') +sphinx_c = run_command(sphinx, '--version', check: true) +breathe_c = run_command(breathe, '--version', check: true) +doxygen_c = run_command(doxygen, '--version', check: true) sphinx_v = sphinx_c.stdout().split(' ')[1].strip() breathe_v = breathe_c.stdout().split(' ')[2].strip()