diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2024-03-26 14:39:54 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2024-03-26 14:39:54 -0400 |
commit | 948cfe891a1234f52057db56f7cb1ea088de5ade (patch) | |
tree | e83a406326b083b8215cddb84cbc667f6f4fc4e0 /tnslc/build.sh | |
parent | bb59c119af8ca19fa0eece110f6f7444e52dd558 (diff) |
vector bugfix
Diffstat (limited to 'tnslc/build.sh')
-rwxr-xr-x | tnslc/build.sh | 13 |
1 files changed, 13 insertions, 0 deletions
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 + |