Skip to content

Commit

Permalink
Set CTCACHE_SAVE_OUTPUT=1
Browse files Browse the repository at this point in the history
This makes `ctcache` store the stdout output of clang-tidy in the cache.
Therefore, it no longer has to rerun clang-tidy for files with warnings,
which should speed up our build times.
  • Loading branch information
PatrickKa committed Jan 11, 2025
1 parent dd4b301 commit f7a624d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions linux-x86/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ RUN sudo cmake --version

# Install clang-tidy-cache
ENV CTCACHE_DIR="/.cache/clang-tidy"
ENV CTCACHE_SAVE_OUTPUT=1
RUN mkdir -p ${CTCACHE_DIR}

RUN wget https://raw.githubusercontent.com/matus-chochlik/ctcache/main/src/ctcache/clang_tidy_cache.py -O /usr/local/bin/clang-tidy-cache && chmod +x /usr/local/bin/clang-tidy-cache
Expand Down

0 comments on commit f7a624d

Please sign in to comment.