[CMake] Cache the compiler-rt library search results

There's a lot of duplicated calls to find various compiler-rt libraries
from build of runtime libraries like libunwind, libc++, libc++abi and
compiler-rt. The compiler-rt helper module already implemented caching
for results avoid repeated Clang invocations.

This change moves the compiler-rt implementation into a shared location
and reuses it from other runtimes to reduce duplication and speed up
the build.

Differential Revision: https://reviews.llvm.org/D88458

GitOrigin-RevId: 0eed292fbae22a8856682b07e1cb968424b49941
3 files changed
tree: 8d6815b3458f63d57947d9a320ec77df4da28b58
  1. .clang-format
  2. CMakeLists.txt
  4. cmake/
  5. docs/
  6. include/
  7. src/
  8. test/