[Ubuntu] Reworked clang installation to use default Ubuntu repo (#3834)

This commit is contained in:
Leonid Lapshin
2021-08-04 10:45:59 +03:00
committed by GitHub
parent b36d7c3960
commit e7ca52b564
3 changed files with 5 additions and 30 deletions

View File

@@ -44,13 +44,6 @@ function Get-ClangVersions {
return "Clang " + $clangVersions
}
function Get-LLVMInfo {
$clangVersions = Get-ClangToolVersions -ToolName "clang"
$clangFormatVersions = Get-ClangToolVersions -ToolName "clang-format"
$aptSourceRepo = Get-AptSourceRepository -PackageName "llvm"
return "LLVM components: Clang $clangFormatVersions, Clang-format $clangFormatVersions (apt source: $aptSourceRepo)"
}
function Get-ClangFormatVersions {
$clangFormatVersions = Get-ClangToolVersions -ToolName "clang-format"
return "Clang-format " + $clangFormatVersions

View File

@@ -50,16 +50,11 @@ $runtimesList = @(
(Get-RubyVersion),
(Get-SwiftVersion),
(Get-JuliaVersion),
(Get-KotlinVersion)
(Get-KotlinVersion),
(Get-ClangVersions),
(Get-ClangFormatVersions)
)
if (Test-IsUbuntu20) {
$runtimesList += (Get-LLVMInfo)
} else {
$runtimesList += (Get-ClangVersions)
$runtimesList += (Get-ClangFormatVersions)
}
$markdown += New-MDList -Style Unordered -Lines ($runtimesList | Sort-Object)
$markdown += New-MDHeader "Package Management" -Level 3