diff options
| author | Alexander Barton <alex@barton.de> | 2020-10-20 21:47:10 +0200 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2020-10-20 21:47:10 +0200 |
| commit | e699325fd043d747b7256291154bf4fcaa9aa90e (patch) | |
| tree | ec848b6d8721027934fb232287247ff66cb97486 /contrib | |
| parent | 0ae158a492221421f9e8b531d16651e3bcd9ccee (diff) | |
| download | ngircd-e699325fd043d747b7256291154bf4fcaa9aa90e.tar.gz ngircd-e699325fd043d747b7256291154bf4fcaa9aa90e.zip | |
platformtest.sh: Try to mangle CLang name more intellligently
Diffstat (limited to 'contrib')
| -rwxr-xr-x | contrib/platformtest.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/platformtest.sh b/contrib/platformtest.sh index e054d06f..4b1b9914 100755 --- a/contrib/platformtest.sh +++ b/contrib/platformtest.sh @@ -174,8 +174,7 @@ if [ -r "Makefile" ]; then if [ $? -eq 0 ]; then COMPILER=$($CC --version 2>/dev/null | head -1 \ | cut -d'(' -f1 | cut -d'-' -f1 \ - | sed -e 's/version //g' | sed -e 's/Apple /A-/g' \ - | sed -e 's/Debian //g' | sed -e 's/LLVM /clang /g') + | sed -e 's/version //g; s/^\([A-Z]\)[A-Za-z]* clang/\1-clang/g; s/LLVM /clang /g') fi $CC -version 2>&1 | grep -i "tcc" >/dev/null if [ $? -eq 0 ]; then |