-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathrun-cmd.ps1
15 lines (11 loc) · 920 Bytes
/
run-cmd.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
param ([string] $command)
$PSNativeCommandUseErrorActionPreference = $true
$ErrorActionPreference = 'Stop'
$IncludeTarget = $true
if ($command -eq "fmt") {
$IncludeTarget = $false
}
cargo +nightly $command --manifest-path=shared/Cargo.toml $(if ($IncludeTarget) { "--target" } else { "" }) $(if ($IncludeTarget) { "i686-pc-windows-msvc" } else { "" }) $args
cargo +nightly $command --manifest-path=shared/Cargo.toml $(if ($IncludeTarget) { "--target" } else { "" }) $(if ($IncludeTarget) { "x86_64-pc-windows-msvc" } else { "" }) $args
cargo +nightly $command --manifest-path=burnt-sushi-blocker/Cargo.toml $(if ($IncludeTarget) { "--target" } else { "" }) $(if ($IncludeTarget) { "i686-pc-windows-msvc" } else { "" }) $args
cargo +nightly $command --manifest-path=burnt-sushi/Cargo.toml $(if ($IncludeTarget) { "--target" } else { "" }) $(if ($IncludeTarget) { "x86_64-pc-windows-msvc" } else { "" }) $args