The flags LLDB_USE_SYSTEM_DEBUGSERVER and LLDB_NO_DEBUGSERVER were
introduced to the debugserver build. If one of these two flags are set, then we
do not build and sign debugserver. However I noticed that we were still building
the lldbDebugserverCommon and lldbDebugserverCommon_NonUI libraries regardless
of whether or not these flags were set. I don't believe we should be building
these libraries unless we are building and signing debugserver.
Details
Details
- Reviewers
sgraenitz davide JDevlieghere beanz vsk aprantl labath - Commits
- rGcb1c467edb2c: [CMake] Prevent lldbDebugserverCommon from building if you disable debugserver…
rL351496: [CMake] Prevent lldbDebugserverCommon from building if you disable debugserver…
rLLDB351496: [CMake] Prevent lldbDebugserverCommon from building if you disable debugserver…
Diff Detail
Diff Detail
- Build Status
Buildable 26933 Build 26932: arc lint + arc unit
Event Timeline
Comment Actions
Yes this sounds very reasonable.
One little detail is, that on Darwin the debugserverTests unit test target depends on lldbDebugserverCommon.
In unittests/CMakeLists.txt it's included if(LLDB_CAN_USE_DEBUGSERVER), which should be changed to if(NOT SKIP_TEST_DEBUGSERVER) now. IIUC this would make sense anyway.