Merge pull request #1432 from simonbuchan/windows-y-wrappers
Add Windows wrappers for ./y
This commit is contained in:
commit
db91a41537
9
y.cmd
Normal file
9
y.cmd
Normal file
@ -0,0 +1,9 @@
|
||||
@echo off
|
||||
echo [BUILD] build system >&2
|
||||
mkdir build 2>nul
|
||||
rustc build_system/main.rs -o build\y.exe -Cdebuginfo=1 --edition 2021 || goto :error
|
||||
build\y.exe %* || goto :error
|
||||
goto :EOF
|
||||
|
||||
:error
|
||||
exit /b
|
12
y.ps1
Normal file
12
y.ps1
Normal file
@ -0,0 +1,12 @@
|
||||
$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
|
||||
}
|
Loading…
Reference in New Issue
Block a user