More comprehensive build.c
This commit is contained in:
30
build.c
Normal file → Executable file
30
build.c
Normal file → Executable 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"
|
||||
|
||||
Reference in New Issue
Block a user