[lldb] add fallback for LLDB_PYTHON_RELATIVE_PATH
authorLawrence D'Anna <lawrence_danna@apple.com>
Fri, 3 Dec 2021 05:13:09 +0000 (21:13 -0800)
committerLawrence D'Anna <lawrence_danna@apple.com>
Fri, 3 Dec 2021 05:13:35 +0000 (21:13 -0800)
commit27ca9458012caf8b556ce31fc7aaac571af878d2
treeed19ad205876d8752f2a3a0999abd5b8516b86cd
parent021ecbbb4426299e4c4bbff6c839bdab3f85a877
[lldb] add fallback for LLDB_PYTHON_RELATIVE_PATH

Some pythons are configured to set platlib somewhere outside of their
sys.prefix.   It's important that we at least use some reasonable
default for LLDB_PYTHON_RELATIVE_PATH even in that case, because
even if the user overrides it on the cmake invocation, cmake will
still be called without the override in order to build tablegen.

Reviewed By: JDevlieghere, clayborg

Differential Revision: https://reviews.llvm.org/D114973
lldb/bindings/python/get-python-config.py