diff options
| author | Alexander Barton <alex@barton.de> | 2013-10-20 15:25:19 +0200 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2013-10-20 15:25:19 +0200 |
| commit | beb9f65dc8dfb4517ab59512ddaf1e111a4e3132 (patch) | |
| tree | 9fa65f244e292782a589a0d7f2e18a984a589723 | |
| parent | 62865f7e1910d08ad8d72cb89f830f6d9411ffa2 (diff) | |
| download | ngircd-beb9f65dc8dfb4517ab59512ddaf1e111a4e3132.tar.gz ngircd-beb9f65dc8dfb4517ab59512ddaf1e111a4e3132.zip | |
platformtest.sh: Detect clang compilers
| -rwxr-xr-x | contrib/platformtest.sh | 7 | ||||
| -rw-r--r-- | doc/Platforms.txt | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/contrib/platformtest.sh b/contrib/platformtest.sh index 6b154bbb..ba0a45e9 100755 --- a/contrib/platformtest.sh +++ b/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 diff --git a/doc/Platforms.txt b/doc/Platforms.txt index d4893750..ef426a3a 100644 --- a/doc/Platforms.txt +++ b/doc/Platforms.txt @@ -74,8 +74,10 @@ sparc/sun/solaris2.6 gcc 2.95.3 0.7.x-CVS 03-04-22 alex Y Y Y Y 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) |