2
0

install_llvm-win32.ps1 509 B

1234567891011
  1. # Copyright The OpenTelemetry Authors
  2. # SPDX-License-Identifier: Apache-2.0
  3. $llvmVersion = "10.0.0"
  4. Write-Host "Installing LLVM $llvmVersion ..." -ForegroundColor Cyan
  5. Write-Host "Downloading..."
  6. $exePath = "$env:temp\LLVM-$llvmVersion-win32.exe"
  7. (New-Object Net.WebClient).DownloadFile("https://github.com/llvm/llvm-project/releases/download/llvmorg-$llvmVersion/LLVM-$llvmVersion-win32.exe", $exePath)
  8. Write-Host "Installing..."
  9. cmd /c start /wait $exePath /S
  10. Write-Host "Installed" -ForegroundColor Green