summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2023-05-15 19:31:06 -0400
committerKyle Gunger <kgunger12@gmail.com>2023-05-15 19:31:06 -0400
commitcb277c3a30a1b5c250dea2e9c11ea0983b1cc9b9 (patch)
tree48632c5162a16761fc826821544d4693bbea9f39
parentaab648543af3d874667041349b1a22ae19dde30b (diff)
Separate artifacts
-rw-r--r--tnslc/run.ps17
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 "";