lld/cmake: Drop use of llvm-config for LLVM install discovery
authorTom Stellard <tstellar@redhat.com>
Sat, 6 Aug 2022 13:22:19 +0000 (09:22 -0400)
committerJohn Ericson <John.Ericson@Obsidian.Systems>
Sat, 6 Aug 2022 20:24:04 +0000 (16:24 -0400)
commit91f3f0bf31d6fdcbbd750670840e22f9b2b36625
treeb349acd26c99ca9e1d80064dbd6d4a34b43a0f41
parentd2b158e29eedf4a29bf8d2142f2ed21a52fc80a7
lld/cmake: Drop use of llvm-config for LLVM install discovery

This has been deprecated since D116492 earlier in 2022.

That seems recent, but with the recent cut of LLVM 15 that is still two releases (14 and 15). Meanwhile Clang has deprecated `llvm-config` for a lot longer, and since it is likely that LLD users are also Clang users, this serves as an extra "heads up" that `llvm-config` is on its way out.

Remove it in favor of using CMake's find_package() function.

Reviewed By: MaskRay, mgorny

Differential Revision: https://reviews.llvm.org/D131144
lld/CMakeLists.txt