mirror of
https://github.com/osmarks/ngircd.git
synced 2025-01-19 12:02:52 +00:00
platformtest.sh: Try to mangle CLang name more intellligently
This commit is contained in:
parent
0ae158a492
commit
e699325fd0
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user