summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_codegen_cranelift/y.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_codegen_cranelift/y.ps1')
-rw-r--r--compiler/rustc_codegen_cranelift/y.ps112
1 files changed, 12 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_cranelift/y.ps1 b/compiler/rustc_codegen_cranelift/y.ps1
new file mode 100644
index 000000000..02ef0fcbd
--- /dev/null
+++ b/compiler/rustc_codegen_cranelift/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
+if ($LASTEXITCODE -ne 0) {
+ exit $LASTEXITCODE
+}