[Lldb-commits] [lldb] [LLDB] Added support for cross compiling with host python (PR #123735)

via lldb-commits lldb-commits at lists.llvm.org
Tue Jan 21 20:12:20 PST 2025


patryk4815 wrote:

@DavidSpickett I found that `get-python-config.py` wasn't fully correct for cross-compilation. 
I've added a comment there specifying which functions should be used.

Guide how to cross compile, eg. for riscv64:
```
export _PYTHON_HOST_PLATFORM="linux-riscv64"
export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata__linux_riscv64-linux-gnu"
export PYTHONPATH="<native-python>/lib/python3.12/site-packages:<riscv64-python>/lib/python3.12/site-packages"
```
^ just replace with proper paths in `PYTHONPATH`


https://github.com/llvm/llvm-project/pull/123735


More information about the lldb-commits mailing list