diff options
-rw-r--r-- | tnslc/run.ps1 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tnslc/run.ps1 b/tnslc/run.ps1 index 1994257..b820fb4 100644 --- a/tnslc/run.ps1 +++ b/tnslc/run.ps1 @@ -1,9 +1,10 @@ if ($args.Length -gt 0) { ..\tint.exe -flags "$args" -in tnslc.tnsl 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" + mkdir -Force build/artifacts + mv -Force "$($args[0]).asm" "build/artifacts/$($args[0]).asm" + nasm -f win64 -o "build/artifacts/$($args[0]).obj" "build/artifacts/$($args[0]).asm" + gcc -o "build/$($args[0]).exe" "build/artifacts/$($args[0]).obj" } else { Write-Host "Usage: run [file to compile]"; Write-Host ""; |