dependency cycle fix in DynamicLoaderDarwinKernel
authorJason Molenda <jason@molenda.com>
Sat, 10 Sep 2022 00:34:23 +0000 (17:34 -0700)
committerJason Molenda <jason@molenda.com>
Sat, 10 Sep 2022 00:37:46 +0000 (17:37 -0700)
commit30578c08568bc8de79dea72e41f49899ba10ea55
tree319f153bf5e225d5a1a669d19d0a6553460a0e60
parent467bb47c841897450990f3ab82e79fec5f2d1f60
dependency cycle fix in DynamicLoaderDarwinKernel

DynamicLoaderDarwinKernel calls in to PlatformDarwinKernel, and
with my changes in https://reviews.llvm.org/D133534, PlatformDarwinKernel
calls in to DynamicLoaderDarwinKernel.  This results in a cmake
dependency if accurately included in the link libraries list.

lldbPluginDynamicLoaderDarwinKernel is specfically for kernel
debugging and is uncommonly linked in to anything except a full
lldb.  lldbPluginPlatformMacOSX is any Darwin platform, including
PlatformDarwinKernel, and is referenced a number of time in shell
tests, for instance.

I believe anything linking the darwin kernel DynamicLoader plugin
will already have lldbPluginPlatformMacOSX in its dependency list,
so not explicitly expressing this dependency is safe.
lldb/source/Plugins/DynamicLoader/Darwin-Kernel/CMakeLists.txt