From adff5b464976d1aff98f9fa8ab35722d022b74e3 Mon Sep 17 00:00:00 2001 From: Aleksandr Chebotov <47745270+al-cheb@users.noreply.github.com> Date: Tue, 28 Jun 2022 17:54:57 +0200 Subject: [PATCH] Add llvm brew version (#5834) --- images/macos/software-report/SoftwareReport.Common.psm1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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