Module: ngircd.git
Branch: master
Commit: beb9f65dc8dfb4517ab59512ddaf1e111a4e3132
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=beb9f65d…
Author: Alexander Barton <alex(a)barton.de>
Date: Sun Oct 20 15:25:19 2013 +0200
platformtest.sh: Detect clang compilers
---
contrib/platformtest.sh | 7 ++++---
doc/Platforms.txt | 2 ++
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/contrib/platformtest.sh b/contrib/platformtest.sh
index 6b154bb..ba0a45e 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 d489375..ef426a3 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)
Module: ngircd.git
Branch: master
Commit: cba5a2579f911c8527e5c51c4c57e6beaefe26d8
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=cba5a257…
Author: Alexander Barton <alex(a)barton.de>
Date: Wed Oct 16 22:27:38 2013 +0200
doc/Platforms.txt: Add Open64 and tcc C compilers on Linux
Thanks to Götz Hoffart!
---
doc/Platforms.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/doc/Platforms.txt b/doc/Platforms.txt
index e9c19a4..d489375 100644
--- a/doc/Platforms.txt
+++ b/doc/Platforms.txt
@@ -77,6 +77,8 @@ x86_64/apple/darwin12.3.0 gcc 4.2.1 20.2 13-04-01 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 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)
x86_64/unknown/openbsd4.7 gcc 3.3.5 20~rc1 12-02-26 alex Y Y Y Y (3)
x86_64/unknown/openbsd4.8 gcc 4.2.1 20~rc1 12-11-13 alex Y Y Y Y (3)
Module: ngircd.git
Branch: master
Commit: 0bd3fb88b2c2a433a68c82c3eaba2fd13b8fcd0b
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=0bd3fb88…
Author: Alexander Barton <alex(a)barton.de>
Date: Mon Oct 14 23:45:59 2013 +0200
platformtest.sh: Detect Apple LLVM (clang) compiler
---
contrib/platformtest.sh | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/contrib/platformtest.sh b/contrib/platformtest.sh
index cfa1ecc..765fb39 100755
--- a/contrib/platformtest.sh
+++ b/contrib/platformtest.sh
@@ -1,7 +1,7 @@
#!/bin/sh
#
# ngIRCd -- The Next Generation IRC Daemon
-# Copyright (c)2001-2011 Alexander Barton (alex(a)barton.de) and Contributors
+# Copyright (c)2001-2013 Alexander Barton (alex(a)barton.de) and Contributors
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -108,12 +108,16 @@ if [ -r "Makefile" ]; then
COMPILER="gcc $COMPILER"
fi
else
- case "$CC" in
- gcc*)
+ $CC --version 2>&1 | grep -i "LLVM" >/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')
+ fi
+ if [ "$COMPILER" = "unknown" ]; then
v="`$CC --version 2>/dev/null | head -1`"
- [ -n "$v" ] && COMPILER="gcc $v"
- ;;
- esac
+ [ -n "$v" ] && COMPILER="$v"
+ fi
fi
fi