[lldb] build failure for LLDB_PYTHON_EXE_RELATIVE_PATH on greendragon
authorLawrence D'Anna <lawrence_danna@apple.com>
Wed, 17 Nov 2021 17:16:50 +0000 (09:16 -0800)
committerLawrence D'Anna <lawrence_danna@apple.com>
Wed, 17 Nov 2021 17:26:24 +0000 (09:26 -0800)
commitf07ddbc620a0466ebbb41ccbc78f20a8591bed5a
tree908fab929aceee5e1fd0b3922012a88b59de4f72
parent394d6fcf3eb98f99045df506e587ac7cbf15e7a4
[lldb] build failure for LLDB_PYTHON_EXE_RELATIVE_PATH on greendragon

see: https://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake/38387/console

```
Could not find a relative path to sys.executable under sys.prefix
tried: /usr/local/opt/python/bin/python3.7
tried: /usr/local/opt/python/bin/../Frameworks/Python.framework/Versions/3.7/bin/python3.7
sys.prefix: /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7
```

It was unable to find LLDB_PYTHON_EXE_RELATIVE_PATH because it was not resolving
the real path of sys.prefix.

caused by: https://reviews.llvm.org/D113650
lldb/bindings/python/get-python-config.py