[lldb-dev] RFC: Eliminate LLDB_DISABLE_PYTHON

Jim Ingham via lldb-dev lldb-dev at lists.llvm.org
Thu Mar 7 11:03:43 PST 2019

Even though you can just use debugserver/lldb-server and debug remotely, many people find it handy to be able to run a debugger directly on the device they are using.  But requiring that you port Python and bundle it with your embedded platform just to get a debugger there is a pretty big ask.  So it is still quite useful to be able to build lldb without Python.  This option hasn't been broken all that frequently in our uses, but if it is being a problem, the better solution would be to set up a bot to build with this option, so we can make sure it keeps working.


> On Mar 7, 2019, at 10:27 AM, Adrian McCarthy via lldb-dev <lldb-dev at lists.llvm.org> wrote:
> We have a build option to build LLDB without Python.  This option is automatically set if Cmake can't find or "validate" your Python distribution.
> Since LLDB is rarely built with this option, nobody discovers when this configuration breaks.  For example, if you try it today, you'll get a handful of missing symbol errors because their declarations are #if'ed out but other code still references them.
> I'm proposing eliminating this option and fixing the validation of the Python distribution in LLDBConfig.cmake.
> If you believe LLDB_DISABLE_PYTHON is still useful, please speak up, and I'll instead look at fixing the existing build problems.
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

More information about the lldb-dev mailing list