Addresses:
- https://llvm.org/bugs/show_bug.cgi?id=24831: cmake + ninja: 'ninja lldb' misses lib/python2.7 build dependency on Linux
- https://llvm.org/bugs/show_bug.cgi?id=24833: cmake + ninja: 'ninja lldb' misses lldb-server dependency on Linux
Without this fix, 'cmake && ninja lldb' would:
- miss building lldb-server on Linux
- miss copying the python module and fail to create the _lldb.so symlink
With this fix, those issues are resolved on Linux. (The python post-build step issue is resolved for all platforms that don't disable python and use the lldb target).
This also prevents the need for executing:
'ninja'
which builds a number of additional executables (llvm/clang) which aren't needed to test/run lldb. So it should trim down build times for those just wanting lldb and its immediate dependencies.
In case of darwin you need *debugserver* to be able to debug locally. lldb-server is only used for remote debugging here afaik.