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

Petr Hosek via All-commits all-commits at lists.llvm.org
Mon Oct 18 14:44:35 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0eed292fbae22a8856682b07e1cb968424b49941
      https://github.com/llvm/llvm-project/commit/0eed292fbae22a8856682b07e1cb968424b49941
  Author: Petr Hosek <phosek at google.com>
  Date:   2021-10-18 (Mon, 18 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