[PATCH] D137024: [compiler-rt] Switch from llvm-config to find_package(LLVM)

Michał Górny via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 1 06:52:47 PDT 2022


mgorny updated this revision to Diff 472285.
mgorny added a comment.

Add a backwards compatibility path that uses `LLVM_CONFIG_PATH` to locate LLVM CMake files. I think it's sufficient to use path relative to the specified location, and we don't want to actually call it.

Restore the explicit warning when LLVM is not found and the fallback path is used.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137024/new/

https://reviews.llvm.org/D137024

Files:
  compiler-rt/cmake/Modules/CompilerRTUtils.cmake
  compiler-rt/lib/xray/tests/CMakeLists.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137024.472285.patch
Type: text/x-patch
Size: 9867 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221101/d1733b28/attachment-0001.bin>


More information about the cfe-commits mailing list