[all-commits] [llvm/llvm-project] 44e336: [CMake] Factor out config prefix finding logic

John Ericson via All-commits all-commits at lists.llvm.org
Fri Jan 7 12:16:30 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 44e3365775101fec3fd355eda339282258d74415
      https://github.com/llvm/llvm-project/commit/44e3365775101fec3fd355eda339282258d74415
  Author: John Ericson <John.Ericson at Obsidian.Systems>
  Date:   2022-01-07 (Fri, 07 Jan 2022)

  Changed paths:
    M clang/CMakeLists.txt
    M clang/cmake/modules/CMakeLists.txt
    A cmake/Modules/FindPrefixFromConfig.cmake
    M flang/cmake/modules/CMakeLists.txt
    M lld/cmake/modules/CMakeLists.txt
    M llvm/CMakeLists.txt
    M llvm/cmake/modules/CMakeLists.txt
    M mlir/CMakeLists.txt
    M mlir/cmake/modules/CMakeLists.txt

  Log Message:
  -----------
  [CMake] Factor out config prefix finding logic

See the docs in the new function for details.

 I think I found every instance of this copy pasted code. Polly could
 also use it, but currently does something different, so I will save the
 behavior change for a future revision.

We get the shared, non-installed CMake modules following the pattern
established in D116472.

It might be good to have LLD and Flang also use this, but that would be
a functional change and so I leave it as future work.

Reviewed By: beanz, lebedev.ri

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




More information about the All-commits mailing list