Re: [ccache] Speeding up builds with clang-tidy, clang-analyzer and iwyu

2020-08-02 Thread Christian Ledergerber via ccache
Thank you for your answer. In the mean-time I have been thinking some more and what I am afraid of is that the result will not be correct if the flags to clang-tidy change. A typical command run by make looks like this: cd /home/dev/erx-soft/cmake-build-debug/modules/utils && ccache

Re: [ccache] Speeding up builds with clang-tidy, clang-analyzer and iwyu

2020-08-02 Thread Joel Rosdahl via ccache
On Sun, 2 Aug 2020 at 18:55, Christian Ledergerber via ccache wrote: > [...] > To me it seems like the following should work: > > 1. try to use ccache > > 2. if no hit: > > - run clang-tidy > > - run clang > > For this I would need to know whether ccache generated a hit - lets say > as return

[ccache] Speeding up builds with clang-tidy, clang-analyzer and iwyu

2020-08-02 Thread Christian Ledergerber via ccache
Hi All, for our builds currently clang-tidy is currently the limiting factor in terms of speed. There is one utility out there which tries to cache the output of clang-tidy, however it seems to be stale: https://github.com/ejfitzgerald/clang-tidy-cache Yet, I have the impression that my