[MacOS] Unlink LLVM from brew (#13838)

This commit is contained in:
Sergei Radich
2026-03-24 12:09:02 +01:00
committed by GitHub
parent cf75c29700
commit 7c31b32cd0
2 changed files with 7 additions and 0 deletions
@@ -9,5 +9,7 @@ source ~/utils/utils.sh
llvmVersion=$(get_toolset_value '.llvm.version')
brew_smart_install "llvm@${llvmVersion}"
# After brew update to 5.1.0 we have to manually unlink llvm to avoid conflicts with pre-installed llvm on macOS
brew unlink "llvm@${llvmVersion}"
invoke_tests "LLVM"
@@ -9,4 +9,9 @@ Describe "Clang/LLVM" {
$clangVersion = & "$(brew --prefix llvm@$toolsetVersion)/bin/clang" --version
$clangVersion[0] | Should -BeLike "*${toolsetVersion}*"
}
It "Default clang points to Apple clang" {
(Get-CommandResult "which clang").Output.Trim() | Should -Be "/usr/bin/clang"
(Get-CommandResult "clang --version").Output | Should -BeLike "*Apple clang*"
}
}