This repository has been archived on 2025-10-23. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nub-lang-archive/build.sh
nub31 0fe49df688 ...
2025-06-07 19:05:11 +02:00

16 lines
349 B
Bash
Executable File

#!/bin/bash
set -e
mkdir -p out
dotnet build src/lang/Nub.Lang.CLI
nub example > out/out.qbe
nasm -g -felf64 src/runtime/runtime.asm -o out/runtime.o
nasm -g -felf64 src/runtime/core/syscall.asm -o out/syscall.o
qbe out/out.qbe > out/out.s
gcc -c -g out/out.s -o out/out.o
gcc -nostartfiles -o out/program out/runtime.o out/syscall.o out/out.o