Python was the last remaining "optional" dependency for LLDB. This moves the code to find Python into FindPythonInterpAndLibs using the same principles as FindCursesAndPanel.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
It's nice to consolidate the logic into one place. I think you will probably need to make an appropriate change on the buildbot side as well (if you haven't done that already).
Where is FindPythonInterpAndLibs being included?
Do you mean forcing LLDB_ENABLE_PYTHON to on so that it fails in case the logic changes and Python isn't found?
Where is FindPythonInterpAndLibs being included?
It's included from the add_optional_dependency macro.
Yes, something like that. It looks like the previous expected behavior was that python was implicitly a required dependency (unless you explicitly disabled it or were building for android/ios). Making it an optional dependency means that the buildbots should probably explicitly say that they want to enable python. You could probably not change buildbot invocations, but that means that if a buildbot fails to find python then we won't know until something goes wrong (e.g. A test fails locally on some setup that passed buildbots because buildbots weren't running python tests).
lldb/cmake/modules/FindPythonInterpAndLibs.cmake | ||
---|---|---|
3 | Typo. |
Typo.