diff --git a/build.c b/build.c old mode 100644 new mode 100755 index 764a61b..e2c5549 --- a/build.c +++ b/build.c @@ -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"