summaryrefslogtreecommitdiff
path: root/tnslc
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-05-30 01:07:42 -0400
committerKyle Gunger <kgunger12@gmail.com>2024-05-30 01:07:42 -0400
commitc4c595fe22bc76aa4d27f2383ec68a0aa74da37c (patch)
tree9dcc9781d9598156a8171c18376c5689d319f143 /tnslc
parent15eded2fdb4b039a1bcdc4d3094f708e6529c355 (diff)
Add debug info to tnslc binart
Diffstat (limited to 'tnslc')
-rwxr-xr-xtnslc/build.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tnslc/build.sh b/tnslc/build.sh
index 95cca0e..6bee3fc 100755
--- a/tnslc/build.sh
+++ b/tnslc/build.sh
@@ -8,6 +8,6 @@ mkdir -p $ARTIFACT_DIR
filename=tnslc.tnsl
filename="${filename%.*}"
./ctc $filename.tnsl $ARTIFACT_DIR/$filename.asm
-nasm -f elf64 -o $ARTIFACT_DIR/$filename.o $ARTIFACT_DIR/$filename.asm
-gcc -s -o $BUILD_DIR/$filename $ARTIFACT_DIR/$filename.o
+nasm -g -f elf64 -o $ARTIFACT_DIR/$filename.o $ARTIFACT_DIR/$filename.asm
+gcc -ggdb -o $BUILD_DIR/$filename $ARTIFACT_DIR/$filename.o