diff --git a/ci/clang_tidy.sh b/ci/clang_tidy.sh index 403be2c58c2..aa8f72e622b 100755 --- a/ci/clang_tidy.sh +++ b/ci/clang_tidy.sh @@ -22,9 +22,12 @@ set -u RAPIDS_VERSION_MAJOR_MINOR="$(rapids-version-major-minor)" -# Run the CMake configure step and set the build directory for clang-tidy. -cmake -S cpp -B cpp/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -GNinja +# Run the CMake configure step and set the build directory for clang-tidy. We +# also have to build the jitify generated files or they won't exist for +# clang-tidy to discover. export CUDF_ROOT="${PWD}/cpp/build" +cmake -S cpp -B "${CUDF_ROOT}" -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -GNinja +cmake --build "${CUDF_ROOT}" --target jitify_preprocess_run # Run pre-commit checks pre-commit run --all-files --show-diff-on-failure --hook-stage manual clang-tidy