]> arthur.barton.de Git - ngircd-alex.git/commitdiff
platformtest.sh: Detect clang compilers
authorAlexander Barton <alex@barton.de>
Sun, 20 Oct 2013 13:25:19 +0000 (15:25 +0200)
committerAlexander Barton <alex@barton.de>
Sun, 20 Oct 2013 13:25:19 +0000 (15:25 +0200)
contrib/platformtest.sh
doc/Platforms.txt

index 6b154bbb826c3b71206c41a471814fadf552109b..ba0a45e9adc7c0dfdfa63ef74a84976b20598dbc 100755 (executable)
@@ -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
index d48937502c5eb8942b176152abf016ecc44dc5b9..ef426a3a64dba6597bff7774b00233f26838eee3 100644 (file)
@@ -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)