This fixes the stand-alone build configuration where LLVM_MAIN_SRC_DIR
does not exist.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Unfortunately, this change doesn't work correctly when building LLDB through LLVM_ENABLE_PROJECTS — unittests are always disabled now.
lldb/CMakeLists.txt | ||
---|---|---|
128 ↗ | (On Diff #451684) | If LLDB is built through LLVM_ENABLE_PROJECTS, then LLDB's CMakeLists are included before the subdirectory containing llvm_gtest, effectively making this condition always false. |
lldb/CMakeLists.txt | ||
---|---|---|
128 ↗ | (On Diff #451684) | Good catch. I've put up https://reviews.llvm.org/D131861 as a (straw man) proposal. But I haven't tested it yet. |