1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-10-28 04:46:17 +00:00

platformtest.sh: Try to mangle CLang name more intellligently

This commit is contained in:
Alexander Barton 2020-10-20 21:47:10 +02:00
parent 0ae158a492
commit e699325fd0

View File

@ -174,8 +174,7 @@ if [ -r "Makefile" ]; then
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
COMPILER=$($CC --version 2>/dev/null | head -1 \ COMPILER=$($CC --version 2>/dev/null | head -1 \
| cut -d'(' -f1 | cut -d'-' -f1 \ | cut -d'(' -f1 | cut -d'-' -f1 \
| sed -e 's/version //g' | sed -e 's/Apple /A-/g' \ | sed -e 's/version //g; s/^\([A-Z]\)[A-Za-z]* clang/\1-clang/g; s/LLVM /clang /g')
| sed -e 's/Debian //g' | sed -e 's/LLVM /clang /g')
fi fi
$CC -version 2>&1 | grep -i "tcc" >/dev/null $CC -version 2>&1 | grep -i "tcc" >/dev/null
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then