mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
Add llvm brew version (#5834)
This commit is contained in:
committed by
GitHub
parent
3482f716a3
commit
adff5b4649
@@ -96,7 +96,8 @@ function Get-FortranVersion {
|
||||
}
|
||||
|
||||
function Get-ClangLLVMVersion {
|
||||
$locationsList = @("$((Get-Command clang).Source)", '$(brew --prefix llvm)/bin/clang')
|
||||
$toolsetVersion = '$(brew --prefix llvm@{0})/bin/clang' -f (Get-ToolsetValue 'llvm.version')
|
||||
$locationsList = @("$((Get-Command clang).Source)", $toolsetVersion)
|
||||
$locationsList | Foreach-Object {
|
||||
(Run-Command "${_} --version" | Out-String) -match "(?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||
$version = $Matches.version
|
||||
|
||||
Reference in New Issue
Block a user