1
0

links cc to tcc

This commit is contained in:
Deven Blake 2021-04-13 20:00:16 -04:00
parent e16ecf8ac7
commit 65d47523e1

View File

@ -0,0 +1,15 @@
#!/bin/sh
set -e
CC="$(which cc)"
which tcc >/dev/null
if [ -h "$CC" ]; then
unlink "$CC"
ln -s "$(which tcc)" "$CC"
else
printf "$0: \$(which cc), $(which cc), is not a symbolic link\n" >/dev/stderr
exit 1
fi