More comprehensive build.c

This commit is contained in:
2026-02-05 09:43:35 +11:00
parent 29abae0a96
commit 4333c42305

30
build.c Normal file → Executable file
View File

@@ -1,3 +1,33 @@
#if 0
set -eou
if [[ ! -v OUTPUT ]]; then
OUTPUT=solstice
fi
gcc "$0" -o "$OUTPUT"
if not [ $# -lt 1 ]; then
exec "./$OUTPUT" "$@"
fi
exit
#endif
// Solstice unity build C file
// To build: ./build.c
// Options:
// ./build.c (args)
// Builds Solstice, and runs the outputted executable
// with the provided args.
//
// Use the following environment variables to change
// the behaviour of the program:
// OUTPUT: name of the outputted program (defaults
// to "solstice")
// -- LEXER --
#include "src/lexer/SolsType.c"
#include "src/lexer/lexer.c"