From: Armaan Bhojwani Date: Sun, 4 Apr 2021 21:33:04 +0000 (-0400) Subject: autobuild: don't assume tcc X-Git-Tag: v0.0.1~12 X-Git-Url: https://git.armaanb.net/?p=bin.git;a=commitdiff_plain;h=99ab755bb9b43122bd5eb4d4f1ef6cce12533d6e autobuild: don't assume tcc --- diff --git a/autobuild b/autobuild index 1d4de35..5ae82dc 100755 --- a/autobuild +++ b/autobuild @@ -3,5 +3,5 @@ dir=${1:-\.} [ -d $dir/bin ] || mkdir $dir/bin find $dir -name '*.c' -not -iwholename '*cache*' | while read i; do - tcc -o bin/$(basename "$i" .c) "$i" + ${CC:-cc} -o bin/$(basename "$i" .c) "$i" done