From 948cfe891a1234f52057db56f7cb1ea088de5ade Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Tue, 26 Mar 2024 14:39:54 -0400 Subject: vector bugfix --- tnslc/build.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 tnslc/build.sh (limited to 'tnslc/build.sh') diff --git a/tnslc/build.sh b/tnslc/build.sh new file mode 100755 index 0000000..d86c9ae --- /dev/null +++ b/tnslc/build.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +BUILD_DIR=./out +ARTIFACT_DIR=$BUILD_DIR/artifacts + +mkdir -p $BUILD_DIR +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 -o $BUILD_DIR/$filename $ARTIFACT_DIR/$filename.o + -- cgit v1.2.3