From cb277c3a30a1b5c250dea2e9c11ea0983b1cc9b9 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Mon, 15 May 2023 19:31:06 -0400 Subject: Separate artifacts --- tnslc/run.ps1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tnslc/run.ps1') 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 ""; -- cgit v1.2.3