From f7a624d07975e6e60739695112318227bbfb6cd8 Mon Sep 17 00:00:00 2001 From: Patrick Kappl Date: Sat, 11 Jan 2025 14:04:05 +0100 Subject: [PATCH] Set `CTCACHE_SAVE_OUTPUT=1` 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. --- linux-x86/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-x86/Dockerfile b/linux-x86/Dockerfile index 0573bc2..49ac570 100644 --- a/linux-x86/Dockerfile +++ b/linux-x86/Dockerfile @@ -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