We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6b82fe2 + f5a74dc commit db91a41Copy full SHA for db91a41
y.cmd
@@ -0,0 +1,9 @@
1
+@echo off
2
+echo [BUILD] build system >&2
3
+mkdir build 2>nul
4
+rustc build_system/main.rs -o build\y.exe -Cdebuginfo=1 --edition 2021 || goto :error
5
+build\y.exe %* || goto :error
6
+goto :EOF
7
+
8
+:error
9
+exit /b
y.ps1
@@ -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
10
11
12
0 commit comments