Files
build_infra/cqwrteur/toolchainbuildscripts-main/installs/windows/create_env.ps1
T
2026-06-29 16:16:11 +08:00

19 lines
492 B
PowerShell

# Please run the following command to allow the script to run:
# Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
# Function to run a command and check its exit code
function Run-Command {
param (
[string]$command
)
Invoke-Expression $command
if ($LASTEXITCODE -ne 0) {
Write-Host "$command failure"
exit 1
}
}
# Run the install-llvm script and check its exit code
Run-Command "./install-llvm.legacy -DOWNLOADALL no -NOINSTALLING yes"