Skip to content

Normalize LLDB version parsing on Darwin to handle both Apple Clang and LLVM versions#56

Merged
stephen-f0 merged 2 commits intofoundryzero:mainfrom
Masrepus:main
Jan 8, 2026
Merged

Normalize LLDB version parsing on Darwin to handle both Apple Clang and LLVM versions#56
stephen-f0 merged 2 commits intofoundryzero:mainfrom
Masrepus:main

Conversation

@Masrepus
Copy link
Contributor

@Masrepus Masrepus commented Jan 3, 2026

On Darwin, the default version of LLDB is the one shipped with Apple Clang, but it's also possible that someone runs an LLDB version built from the official LLVM sources, which then has the same versioning scheme as Linux builds. This setup is now supported, normalizing the LLVM version to the Apple Clang one if detected, so that other places in the code that rely on Apple Clang versions being used on Darwin continue to function.

@stephen-f0
Copy link
Collaborator

Thank you for your contribution.

Looks good to me - We'll probably have to update/expand the list of LLDB->Clang LLDB version mappings in lldb_version_to_clang at some point or come up with a better way of doing this. That is a separate issue though.

@stephen-f0 stephen-f0 merged commit ab0a0b3 into foundryzero:main Jan 8, 2026
@Masrepus
Copy link
Contributor Author

Masrepus commented Jan 8, 2026

Thanks!

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.

2 participants