diff --git a/images/macos/software-report/SoftwareReport.Common.psm1 b/images/macos/software-report/SoftwareReport.Common.psm1 index ebed0576e..56d68f6e1 100644 --- a/images/macos/software-report/SoftwareReport.Common.psm1 +++ b/images/macos/software-report/SoftwareReport.Common.psm1 @@ -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 "(?\d+\.\d+\.\d+)" | Out-Null $version = $Matches.version