Project

General

Profile

Task #3131

support ccache with clang-tidy

Added by Mark Abraham about 1 month ago. Updated 21 days ago.

Status:
New
Priority:
Normal
Assignee:
Category:
build system
Target version:
Difficulty:
uncategorized
Close

Description

As the clang tidy builds are rather slow, it would be good to use ccache with them. Historically this wasn't possible, but since cmake 3.12 the support for wrapper compilers was improved (https://gitlab.kitware.com/cmake/cmake/merge_requests/1791). So if cmake is recent enough, then the clang-tidy build can use ccache. This would be useful to have available on gitlab runner (at least).

History

#1 Updated by Mark Abraham about 1 month ago

  • Target version changed from 2020-beta2 to 2020-infrastructure-update-post-beta1

#2 Updated by Mark Abraham about 1 month ago

Note that since 3.6, cmake has had a native property for running clang-tidy alongside a build (https://cmake.org/cmake/help/v3.6/release/3.6.html#properties) which would be simpler than our current approach of making a wrapper compiler. That looks like it would run the compiler normally, and then run clang tidy. That's ok, but quite slow.

#3 Updated by Mark Abraham about 1 month ago

  • Target version deleted (2020-infrastructure-update-post-beta1)

I thought this would be trivial, but it isn't (probably because our implementation is a bit complicated from when we had to support versions of CMake back to 3.4.3)

#4 Updated by Paul Bauer 21 days ago

  • Target version set to 2020-rc1
  • Parent task deleted (#2899)

removed parent task and retargeted

Also available in: Atom PDF