commit beb9f65dc8dfb4517ab59512ddaf1e111a4e3132 from: Alexander Barton date: Sun Oct 20 13:25:19 2013 UTC platformtest.sh: Detect clang compilers commit - 62865f7e1910d08ad8d72cb89f830f6d9411ffa2 commit + beb9f65dc8dfb4517ab59512ddaf1e111a4e3132 blob - 6b154bbb826c3b71206c41a471814fadf552109b blob + ba0a45e9adc7c0dfdfa63ef74a84976b20598dbc --- contrib/platformtest.sh +++ contrib/platformtest.sh @@ -120,11 +120,12 @@ if [ -r "Makefile" ]; then fi else # Non-GCC compiler - $CC --version 2>&1 | grep -i "LLVM" >/dev/null + $CC --version 2>&1 | grep -i "clang" >/dev/null if [ $? -eq 0 ]; then COMPILER=$($CC --version 2>/dev/null | head -1 \ - | cut -d'(' -f1 | sed -e 's/version //g' \ - | sed -e 's/Apple /A-/g') + | 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') fi $CC -version 2>&1 | grep -i "tcc" >/dev/null if [ $? -eq 0 ]; then blob - d48937502c5eb8942b176152abf016ecc44dc5b9 blob + ef426a3a64dba6597bff7774b00233f26838eee3 --- doc/Platforms.txt +++ doc/Platforms.txt @@ -74,8 +74,10 @@ sparc/sun/solaris2.6 gcc 2.95.3 0.7.x-CVS 03 sparc/sun/solaris2.7 gcc 3.3 0.8.0 04-05-30 alex Y Y Y Y sparc/unkn./netbsdelf1.6.1 gcc 2.95.3 0.8.0 04-05-30 alex Y Y Y Y x86_64/apple/darwin12.3.0 gcc 4.2.1 20.2 13-04-01 alex Y Y Y Y (3) +x86_64/apple/darwin13.0.0 A-clang 5.0 21~rc1 13-10-16 alex Y Y Y Y (3) x86_64/unknown/freebsd8.1 gcc 4.2.1 20~rc1 12-11-13 alex Y Y Y Y (3) x86_64/unkn./freebsd8.1-gnu gcc 4.4.5 19 12-02-26 alex Y Y Y Y (3) +x86_64/unknown/linux-gnu clang 3.2 21~rc1 13-10-16 alex Y Y Y Y (1) x86_64/unknown/linux-gnu gcc 4.4.5 20.2 13-04-01 alex Y Y Y Y (1) x86_64/unknown/linux-gnu Open64 20.3 13-10-16 goetz Y Y Y Y (1) x86_64/unknown/linux-gnu tcc 0.9.25 20.3 13-10-16 goetz Y Y Y Y (1)