[release/9.0] Remove Homebrew LLVM during macOS CI setup#125785
Merged
rbhanda merged 1 commit intodotnet:release/9.0from Mar 19, 2026
Merged
[release/9.0] Remove Homebrew LLVM during macOS CI setup#125785rbhanda merged 1 commit intodotnet:release/9.0from
rbhanda merged 1 commit intodotnet:release/9.0from
Conversation
The CI runner image may ship with a Homebrew LLVM whose libraries (e.g., an x86_64-only libunwind.dylib in /usr/local/lib) conflict with the Apple SDK and break native linking. The build uses Apple clang from /usr/bin/clang exclusively and does not need Homebrew LLVM. Backport of dotnet#125763
Contributor
|
Tagging subscribers to this area: @dotnet/area-infrastructure-libraries |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the macOS CI native-dependency setup script to proactively remove any Homebrew-provided LLVM, which can introduce conflicting libraries (e.g., libunwind.dylib) and break native linking when the build is intended to use Apple clang from /usr/bin/clang.
Changes:
- Uninstall Homebrew
llvm(if present) during macOS CI dependency setup to prevent linker conflicts. - Add explanatory comments documenting the failure mode and rationale.
You can also share your feedback on Copilot code review. Take the survey.
rbhanda
approved these changes
Mar 19, 2026
This was referenced Mar 19, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The CI runner image may ship with a Homebrew LLVM whose libraries (e.g., an x86_64-only libunwind.dylib in /usr/local/lib) conflict with the Apple SDK and break native linking. The build uses Apple clang from /usr/bin/clang exclusively and does not need Homebrew LLVM.
Backport of #125763