Skip to content

[release/8.0-staging] Remove Homebrew LLVM during macOS CI setup - Part 2#125784

Closed
steveisok wants to merge 1 commit intodotnet:release/8.0-stagingfrom
steveisok:backport/remove-brew-llvm-8.0-staging
Closed

[release/8.0-staging] Remove Homebrew LLVM during macOS CI setup - Part 2#125784
steveisok wants to merge 1 commit intodotnet:release/8.0-stagingfrom
steveisok:backport/remove-brew-llvm-8.0-staging

Conversation

@steveisok
Copy link
Copy Markdown
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

Copilot AI review requested due to automatic review settings March 19, 2026 17:02
Copy link
Copy Markdown
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

Removes potentially conflicting Homebrew LLVM from macOS CI dependency setup to prevent native linking failures caused by /usr/local/lib picking up incompatible LLVM-provided libraries, while keeping the build on Apple clang (/usr/bin/clang).

Changes:

  • Uninstall Homebrew llvm (if present) during macOS-family dependency installation to avoid linker/library conflicts.
  • Add inline documentation explaining the rationale and symptoms the change mitigates.

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/8.0-staging] Remove Homebrew LLVM during macOS CI setup Mar 19, 2026
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
@akoeplinger
Copy link
Copy Markdown
Member

not needed anymore now that the image update was reverted

@akoeplinger akoeplinger deleted the backport/remove-brew-llvm-8.0-staging branch March 23, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants