aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index d5bae99..1322453 100755
--- a/build.sh
+++ b/build.sh
@@ -2,6 +2,7 @@
DEBUG=""
LIB="-I libs/tinyosc"
+[ -z "$CC" ] && CC="clang"
mkdir -p bin
@@ -17,5 +18,5 @@ shift $((OPTIND-1))
printf "\n\nmaking project\n"
[ ! -e "src/config.c" ] && cp src/config.def.c src/config.c;
-clang -o bin/chat-loop src/main.c $LIB -lm $DEBUG
-clang -o bin/type src/type.c $LIB -lm $DEBUG
+$CC -o bin/chat-loop src/main.c $LIB -lm $DEBUG
+$CC -o bin/type src/type.c $LIB -lm $DEBUG