Skip to content

[release/9.0] Remove Homebrew LLVM during macOS CI setup#125785

Merged
rbhanda merged 1 commit intodotnet:release/9.0from
steveisok:backport/remove-brew-llvm-9.0-release
Mar 19, 2026
Merged

[release/9.0] Remove Homebrew LLVM during macOS CI setup#125785
rbhanda merged 1 commit intodotnet:release/9.0from
steveisok:backport/remove-brew-llvm-9.0-release

Conversation

@steveisok
Copy link
Member

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

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
Copilot AI review requested due to automatic review settings March 19, 2026 17:03
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@steveisok steveisok changed the title Remove Homebrew LLVM during macOS CI setup [release/9.0] Remove Homebrew LLVM during macOS CI setup Mar 19, 2026
@steveisok steveisok requested a review from a team March 19, 2026 17:14
@steveisok steveisok added the Servicing-approved Approved for servicing release label Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants