Allow use of VS LLVM clang-format. (#13142)

This commit is contained in:
Billy O'Neal 2020-08-26 11:47:39 -07:00 committed by GitHub
parent 4a9b658141
commit 4a08a10f04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,8 +9,12 @@ Param(
$clangFormat = 'C:\Program Files\LLVM\bin\clang-format.exe'
if (-not (Test-Path $clangFormat))
{
Write-Error "clang-format not found; is it installed in the CI machines?"
throw
$clangFormat = 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\Llvm\x64\bin\clang-format.exe'
if (-not (Test-Path $clangFormat))
{
Write-Error 'clang-format not found; is it installed in the CI machines?'
throw
}
}
$toolsrc = Get-Item "$Root/toolsrc"