blob: de35a20daba7a0ed124daa5cde9fa778b4744a9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
# the real build is build.c. this makes sure there is a build program and runs it with what you gave it,
# so ./build.sh does the same as ./build. the compiler it is made with is the one it builds the engine with
set -eu
cd "$(dirname "$0")"
cc=${CC:-cc}
if [ ! -x build ]; then
echo "build.sh: making the build program with $cc"
$cc -DKON_CC="\"$cc\"" -o build build.c
fi
exec ./build "$@"
|