[CMake] Remove custom ccache CMake logic
authorTobias Hieta <tobias@hieta.se>
Mon, 13 Feb 2023 07:42:04 +0000 (08:42 +0100)
committerTobias Hieta <tobias@hieta.se>
Mon, 13 Feb 2023 07:42:38 +0000 (08:42 +0100)
commit0fad18c44a14b909a1aa47165021273d4c10a665
treea7308b2e2c4564f5ca1df1e0cb72ad8ddf32aa9f
parentae55f1cf9c106db00ecdc08ea9148f8835d2c4af
[CMake] Remove custom ccache CMake logic

CMake supports CMAKE_CXX_COMPILER_LAUNCHER since CMake 3.4
so this custom CMake logic we had in LLVM can now be removed.

The only downside with this is that we can't set ccache
options from LLVM CMake, but it's arguable that this doesn't
belong in LLVM but should be done in a script calling the
build.

This was discussed in the forums here:

https://discourse.llvm.org/t/tips-for-incremental-building/67289/4?u=tobiashieta

Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D143468
llvm/CMakeLists.txt
llvm/docs/CMake.rst
llvm/docs/ReleaseNotes.rst
mlir/utils/clang-tidy/README.md