mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
13 lines
337 B
PowerShell
13 lines
337 B
PowerShell
|
$ErrorActionPreference = "Stop"
|
||
|
|
||
|
$host.ui.WriteErrorLine("[BUILD] build system")
|
||
|
New-Item -ItemType Directory -Force -Path build | Out-Null
|
||
|
& rustc build_system/main.rs -o build\y.exe -Cdebuginfo=1 --edition 2021
|
||
|
if ($LASTEXITCODE -ne 0) {
|
||
|
exit $LASTEXITCODE
|
||
|
}
|
||
|
& build\y.exe $args
|
||
|
if ($LASTEXITCODE -ne 0) {
|
||
|
exit $LASTEXITCODE
|
||
|
}
|