Skip to content

Commit

Permalink
Generate headers from jitify so that they're available
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Oct 1, 2024
1 parent 2cf68a0 commit 8d4d334
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ci/clang_tidy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8d4d334

Please sign in to comment.