[all-commits] [llvm/llvm-project] 22acda: [CMake] Cache the compiler-rt library search results

Petr Hosek via All-commits all-commits at lists.llvm.org
Wed Oct 27 17:53:34 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 22acda48ff32712746dad3079579f03c6e89e04c
      https://github.com/llvm/llvm-project/commit/22acda48ff32712746dad3079579f03c6e89e04c
  Author: Petr Hosek <phosek at google.com>
  Date:   2021-10-27 (Wed, 27 Oct 2021)

  Changed paths:
    A cmake/Modules/HandleCompilerRT.cmake
    M compiler-rt/CMakeLists.txt
    M compiler-rt/cmake/Modules/AddCompilerRT.cmake
    R compiler-rt/cmake/Modules/HandleCompilerRT.cmake
    M compiler-rt/cmake/config-ix.cmake
    M compiler-rt/lib/builtins/CMakeLists.txt
    M libcxx/CMakeLists.txt
    R libcxx/cmake/Modules/HandleCompilerRT.cmake
    M libcxx/cmake/config-ix.cmake
    M libcxx/src/CMakeLists.txt
    M libcxxabi/CMakeLists.txt
    R libcxxabi/cmake/Modules/HandleCompilerRT.cmake
    M libcxxabi/cmake/config-ix.cmake
    M libcxxabi/src/CMakeLists.txt
    M libunwind/CMakeLists.txt
    R libunwind/cmake/Modules/HandleCompilerRT.cmake
    M libunwind/cmake/config-ix.cmake

  Log Message:
  -----------
  [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




More information about the All-commits mailing list