Link against clang-cpp dylib rather than split libs when
CLANG_LINK_CLANG_DYLIB is enabled.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
FTR, I'm getting missing LD_LIBRARY_PATH problems when running check-llvm with dylibs. However, it also happens with plain LLVM_LINK_LLVM_DYLIB, so I don't think it needs to be addressed with this patch.
Seems reasonable. Just one quick question about the implementation.
lldb/cmake/modules/AddLLDB.cmake | ||
---|---|---|
94–99 ↗ | (On Diff #223185) | I don't know whether this makes any difference, but I am wondering if we should pass these (both clang-cpp and PARAM_CLANG_LIBS) as the LINK_LIBS argument to the llvm_add_library call above. Seems like it would be more consistent with the approach of letting the llvm function manage linking. WDYT? |
lldb/cmake/modules/AddLLDB.cmake | ||
---|---|---|
94–99 ↗ | (On Diff #223185) | I presumed it doesn't, so went for the simpler approach ;-). I can change it if you prefer. |
lldb/cmake/modules/AddLLDB.cmake | ||
---|---|---|
94–99 ↗ | (On Diff #223185) | Pfft.. I don't know.. We can leave that as is.. |
What about this patch: it's much more simple, though maybe I missed something: https://reviews.llvm.org/D68071