diff options
| author | Charles Zablit <c_zablit@apple.com> | 2025-11-03 20:00:16 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-03 20:00:16 +0000 |
| commit | 15bbdd143cb196be8d60ea4dc813bf7bc5e4650c (patch) | |
| tree | de55b0ca715037500e8fb5442666debdde05ffb8 /llvm/tools/llvm-diff/lib | |
| parent | a8ea7f4580b467183ce2075db6b1b2ec3beb6ebf (diff) | |
| download | llvm-15bbdd143cb196be8d60ea4dc813bf7bc5e4650c.zip llvm-15bbdd143cb196be8d60ea4dc813bf7bc5e4650c.tar.gz llvm-15bbdd143cb196be8d60ea4dc813bf7bc5e4650c.tar.bz2 | |
[lldb][windows] print an error if python.dll is not in the DLL search path (#164893)
This is a follow up to https://github.com/llvm/llvm-project/pull/162509.
Using the `SearchPathW` API, we can ensure that the correct version of
Python is installed before `liblldb` is loaded (and `python.dll`
subsequently). If it's not, we try to add it to the search path with the
methods introduced in https://github.com/llvm/llvm-project/pull/162509.
If that fails or if that method is `#ifdef`'d out, we print an error
which will appear before lldb crashes due to the missing dll.
Before https://github.com/llvm/llvm-project/pull/162509, when invoked
from Powershell, lldb would silently crash (no error message/crash
report). After https://github.com/llvm/llvm-project/pull/162509, it
crashes without any indications that the root cause is the missing
python.dll. With this patch, we print the error before crashing.
Diffstat (limited to 'llvm/tools/llvm-diff/lib')
0 files changed, 0 insertions, 0 deletions
