about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/y.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_codegen_cranelift/y.ps1')
-rwxr-xr-x[-rw-r--r--]compiler/rustc_codegen_cranelift/y.ps17
1 files changed, 1 insertions, 6 deletions
diff --git a/compiler/rustc_codegen_cranelift/y.ps1 b/compiler/rustc_codegen_cranelift/y.ps1
index 02ef0fcbd50..821f0ec6e57 100644..100755
--- a/compiler/rustc_codegen_cranelift/y.ps1
+++ b/compiler/rustc_codegen_cranelift/y.ps1
@@ -1,12 +1,7 @@
 $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
+& cargo run --manifest-path build_system/Cargo.toml -- $args
 if ($LASTEXITCODE -ne 0) {
     exit $LASTEXITCODE
 }