Skip to content

Commit 1430f56

Browse files
authored
[release/9.0] Remove Homebrew LLVM during macOS CI setup (#125785)
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
1 parent b07b47c commit 1430f56

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

eng/install-native-dependencies.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ case "$os" in
4444
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
4545
# Skip brew update for now, see https://github.com/actions/setup-python/issues/577
4646
# brew update --preinstall
47+
48+
# Remove Homebrew LLVM if present. The CI runner image may ship with a
49+
# Homebrew LLVM whose libraries (e.g., libunwind.dylib) are the wrong
50+
# architecture or conflict with the Apple SDK, breaking native linking.
51+
# The build uses Apple clang from /usr/bin/clang exclusively.
52+
brew uninstall --ignore-dependencies llvm 2>/dev/null || true
53+
4754
brew bundle --no-upgrade --file "$(dirname "$0")/Brewfile"
4855
;;
4956

0 commit comments

Comments
 (0)