commit e699325fd043d747b7256291154bf4fcaa9aa90e from: Alexander Barton date: Tue Oct 20 19:47:10 2020 UTC platformtest.sh: Try to mangle CLang name more intellligently commit - 0ae158a492221421f9e8b531d16651e3bcd9ccee commit + e699325fd043d747b7256291154bf4fcaa9aa90e blob - e054d06f05d47a5c4059eec5e66180d7a3ff2f98 blob + 4b1b99147257e82210ece2f7b1a0eed569ffd6a9 --- contrib/platformtest.sh +++ 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