Skip to content

Conversation

…vm#162509)

This patch adds the `LLDB_PYTHON_DLL_RELATIVE_PATH` Cmake variable which
is the relative path to the directory containing `python.dll`. The path
is relative to the directory containing `lldb.exe`.

If this variable is set and the resolved path points to an existing
directory, we call `SetDllDirectoryW` to add `python.dll` to the list of
DLL search paths.

This, combined with `liblldb.dll` being delay loaded, allows to package
`python.dll` with the `llvm` installer.
@charles-zablit charles-zablit requested a review from a team as a code owner October 10, 2025 10:27
@charles-zablit charles-zablit self-assigned this Oct 10, 2025
@charles-zablit
Copy link
Author

@swift-ci please test

@adrian-prantl adrian-prantl merged commit 10999b6 into swiftlang:swift/release/6.2.1 Oct 10, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants