diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2023-05-13 22:21:58 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2023-05-13 22:21:58 -0400 |
commit | e458ba03aab8a2eeac50bb133a6ad4847c0e79a5 (patch) | |
tree | 0121c8e7a610a32a938562f15d4f222617ae65a4 /tnslc/run.ps1 | |
parent | 947e57dd8eb4b8fa32cbee369c1a5e808a709d5c (diff) |
Add tmp variables, break calls
Diffstat (limited to 'tnslc/run.ps1')
-rw-r--r-- | tnslc/run.ps1 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tnslc/run.ps1 b/tnslc/run.ps1 index 620673d..1994257 100644 --- a/tnslc/run.ps1 +++ b/tnslc/run.ps1 @@ -1,8 +1,10 @@ if ($args.Length -gt 0) { ..\tint.exe -flags "$args" -in tnslc.tnsl - nasm -f win64 -o "$($args[0]).obj" "$($args[0]).asm" - gcc -o "$($args[0]).exe" "$($args[0]).obj" + mkdir -Force build + mv -Force "$($args[0]).asm" "build/$($args[0]).asm" + nasm -f win64 -o "build/$($args[0]).obj" "build/$($args[0]).asm" + gcc -o "build/$($args[0]).exe" "build/$($args[0]).obj" } else { Write-Host "Usage: run [file to compile]"; Write-Host ""; -}
\ No newline at end of file +} |