chore: Make meson doublecheck only available if the script exists

We won't have it in the distribution tarballs.

Signed-off-by: Michael Vetter <jubalh@iodoru.org>
This commit is contained in:
Michael Vetter
2026-03-26 10:01:44 +01:00
parent b83003ff76
commit 6ce6383b26

View File

@@ -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,