[Lldb-commits] [PATCH] D136551: [lldb] Include gtest in standalone build only if LLDB_INCLUDE_TESTS

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 24 03:17:22 PDT 2022


mgorny added inline comments.


================
Comment at: lldb/CMakeLists.txt:20
 
+option(LLDB_INCLUDE_TESTS "Generate build targets for the LLDB unit tests." ${LLVM_INCLUDE_TESTS})
+
----------------
labath wrote:
> mgorny wrote:
> > To be honest, I don't exactly like moving this `option`. The alternative I can think of is moving gtest and LLVMTestingSupport logic from `LLDBStandalone` into unittests.
> So, how does this work in non-standalone builds? Is gtest built unconditionally, or is it guarded by something else (LLVM_INCLUDE_TESTS perhaps?)
It's guarded by `LLVM_INCLUDE_UTILS` + `LLVM_INCLUDE_TESTS`.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136551/new/

https://reviews.llvm.org/D136551



More information about the lldb-commits mailing list