add g++-10

This commit is contained in:
Aleksandr Chebotov
2020-09-24 13:01:25 +03:00
parent 5eaec87281
commit 207f49ed93
2 changed files with 4 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ function Get-CPPVersions {
$cppVersions = apt list --installed 2>&1 | Where-Object { $_ -match "g\+\+-\d+"} | ForEach-Object {
$_ -match "now (?<version>\d+\.\d+\.\d+)-" | Out-Null
$Matches.version
}
} | Sort-Object {[Version]$_}
return "GNU C++ " + ($cppVersions -Join ", ")
}
@@ -16,7 +16,7 @@ function Get-FortranVersions {
$fortranVersions = apt list --installed 2>&1 | Where-Object { $_ -match "^gfortran-\d+"} | ForEach-Object {
$_ -match "now (?<version>\d+\.\d+\.\d+)-" | Out-Null
$Matches.version
}
} | Sort-Object {[Version]$_}
return "GNU Fortran " + ($fortranVersions -Join ", ")
}
@@ -28,7 +28,7 @@ function Get-ClangVersions {
$_ -match "clang version (?<version>\d+\.\d+\.\d+)-" | Out-Null
$Matches.version
}
}
} | Sort-Object {[Version]$_}
return "Clang " + ($clangVersions -Join ", ")
}