[macOS] Add GCC 11 (#3361)

* Add gcc@11 to macOS images

* Change tests and software report to use gcc toolset versions

* Add natural sort
This commit is contained in:
Mikhail Timofeev
2021-05-13 11:45:33 +03:00
committed by GitHub
parent 3b20fa31db
commit 0f3523c0af
7 changed files with 40 additions and 13 deletions

View File

@@ -80,7 +80,7 @@ function Get-VcpkgVersion {
}
function Get-GccVersion {
$versionList = @("8", "9", "10")
$versionList = Get-ToolsetValue -KeyPath gcc.versions
$versionList | Foreach-Object {
$version = Run-Command "gcc-${_} --version" | Select-Object -First 1
"$version - available by ``gcc-${_}`` alias"
@@ -88,10 +88,10 @@ function Get-GccVersion {
}
function Get-FortranVersion {
$versionList = @("8", "9", "10")
$versionList = Get-ToolsetValue -KeyPath gcc.versions
$versionList | Foreach-Object {
$version = Run-Command "gfortran-${_} --version" | Select-Object -First 1
"$version - available by ``gfortran-${_}`` alias"
"$version - available by ``gfortran-${_}`` alias"
}
}