[Windows] move llvm to toolset (#4487)

This commit is contained in:
Mikhail Koliada
2021-11-15 12:54:35 +03:00
committed by GitHub
parent 6dc8234648
commit fad30aa851
7 changed files with 27 additions and 13 deletions

View File

@@ -0,0 +1,10 @@
################################################################################
## File: Install-LLVM.ps1
## Desc: Install the latest stable version of llvm and clang compilers
################################################################################
$llvmVersion = (Get-ToolsetContent).llvm.version
$latestChocoVersion = Get-LatestChocoPackageVersion -TargetVersion $llvmVersion -PackageName "llvm"
Choco-Install -PackageName llvm -ArgumentList "--version $latestChocoVersion"
Invoke-PesterTests -TestFile "LLVM"

View File

@@ -0,0 +1,7 @@
Describe "Clang/LLVM" {
It "Clang/LLVM installed and version is correct" {
$toolsetVersion = (Get-ToolsetContent).llvm.version
$clangVersion = clang --version
$clangVersion[0] | Should -BeLike "*${toolsetVersion}*"
}
}

View File

@@ -81,15 +81,6 @@ Describe "KubernetesTools" {
}
}
Describe "LLVM" {
It "<ToolName>" -TestCases @(
@{ ToolName = "clang" }
@{ ToolName = "clang++" }
) {
"$ToolName --version" | Should -ReturnZeroExitCode
}
}
Describe "Mingw64" {
It "<ToolName>" -TestCases @(
@{ ToolName = "gcc" }