From 5a75be3b95dd3e4468bcf427ea7f4f67fb6d5e61 Mon Sep 17 00:00:00 2001 From: Colin Clark Date: Fri, 10 May 2024 15:20:42 +0100 Subject: [PATCH] Update clang-tidy-check for build options If the build directory does not exist, run meson with the -Ddevel=enabled option. If the build test-image directory does not exist, assume that all options have not been enabled and print a warning. --- scripts/clang-tidy-check.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/clang-tidy-check.sh b/scripts/clang-tidy-check.sh index 04129765..7f0011bd 100755 --- a/scripts/clang-tidy-check.sh +++ b/scripts/clang-tidy-check.sh @@ -97,7 +97,12 @@ done if [ ! -d "build" ] then - meson setup build + meson setup -Ddevel=enabled build +else + if [ ! -d "build/test-images.p" ] + then + printf 'Warning: Probably all options are not enabled\n\n' + fi fi ninja -C build -- 2.20.1