Skip to content

LLDB setup backup plan #303

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

Merged
merged 2 commits into from
May 13, 2022

Conversation

adam-fowler
Copy link
Contributor

Since adding the error message for when lldb setup fails, it has been obvious on a number of platforms it is failing. This PR adds a backup for when the lldb script fails. It makes some assumptions about where the lldb.dll/so/dylib might be found. On Linux and Windows this is based on the current structure of the installs. On macOS the backup plan will probably fail, but the script should not fail on macOS so this isn't a huge issue.

In general toolchainPath and swiftFolder should be related but on macOS
with just a Xcode install swift exe is found in /usr/bin while toolchain
is in Xcode package.
Backup is assume relative to the swift binary it is in "../lib" for macOS and Linux and that it is in "../bin" for Windows.
@adam-fowler adam-fowler merged commit a7b5482 into swiftlang:main May 13, 2022
@adam-fowler adam-fowler deleted the lldb-setup-backup-plan branch May 13, 2022 14:45
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.

Failed to setup CodeLLDB message in Codespaces On Windows 10, Launch of LLDB gets error regarding init_fs_encoding
2 participants