Skip to content

Use the root directory as the SDK root on POSIX platforms #10963

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: swift/release/6.2
Choose a base branch
from

Conversation

CodingCarpincho
Copy link

@CodingCarpincho CodingCarpincho commented Jul 7, 2025

LLDB has the concept of an "SDK root", which expresses where the system libraries and so on which are necessary for debugging can be found. On POSIX platforms, the SDK root is just the root of the file system, or /.

We need to implement the appropriate method on HostInfoPosix to prevent the use of the default implementation which just returns an error.

This change is needed to support the Swift REPL but may be useful for other use cases as well.

LLDB has the concept of an "SDK root", which expresses where the
system libraries and so which are necessary for debugging can be
found. On POSIX platforms, the SDK root is just the root of the
file system, or /.

We need to implement the appropriate method on HostInfoPosix to
prevent the use of the default implementation for which just returns
an error.

This change is needed to support the Swift REPL but may be useful
for other use cases as well.
@CodingCarpincho CodingCarpincho requested a review from a team as a code owner July 7, 2025 18:02
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.

1 participant