[lldb][NFCI] Change logic to find clang resource dir in standalone builds
authorAlex Langford <alangford@apple.com>
Tue, 25 Jul 2023 22:38:04 +0000 (15:38 -0700)
committerTobias Hieta <tobias@hieta.se>
Fri, 29 Sep 2023 06:23:39 +0000 (08:23 +0200)
commitc056d720b534a068bdebbb3eae441b6702472e9b
tree12b3893df96d6a8af3e94e5b6a56c080870e0e37
parentcb23434f9e6354407ad75436356536d72179fa75
[lldb][NFCI] Change logic to find clang resource dir in standalone builds

As of 0beffb854209a41f31beb18f9631258349a99299 there is a CMake
function to actually calculate the relative path to the clang resource
directory. Currently we have some bespoke logic that looks in a few
places, but with this new function we should be able to eliminate some
complexity here.

Also, I moved the functionality from LLDBConfig to LLDBStandalone since
it is only used in standalone builds.

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

(cherry picked from commit a809720102fae8d1b5a7073f99f9dae9395c5f41)
lldb/cmake/modules/LLDBConfig.cmake
lldb/cmake/modules/LLDBStandalone.cmake