From 6ce6383b26fd80c91a73515e35c9d254e170037c Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 26 Mar 2026 10:01:44 +0100 Subject: [PATCH] chore: Make meson doublecheck only available if the script exists We won't have it in the distribution tarballs. Signed-off-by: Michael Vetter --- meson.build | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 921aa8a9..36c00422 100644 --- a/meson.build +++ b/meson.build @@ -726,9 +726,12 @@ if get_option('tests') endif endif -run_target('doublecheck', - command: ['scripts/lint-and-test.sh', '--fix-formatting', '--meson'] -) +lint_and_test = find_program('scripts/lint-and-test.sh', required: false) +if lint_and_test.found() + run_target('doublecheck', + command: [lint_and_test, '--fix-formatting', '--meson'] + ) +endif summary({ 'Platform': platform,