Mercurial > hg > nginx
diff auto/cc/name @ 4762:182aee3b1bf5
Added the Clang compiler support.
The -Werror is commented out to not break builds on Linux.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 24 Jul 2012 15:17:03 +0000 |
parents | 1f908d2dde8d |
children | f1daa0356a1d |
line wrap: on
line diff
--- a/auto/cc/name +++ b/auto/cc/name @@ -67,6 +67,10 @@ elif `$CC -v 2>&1 | grep 'gcc version' > NGX_CC_NAME=gcc echo " + using GNU C compiler" +elif `$CC -v 2>&1 | grep 'clang version' >/dev/null 2>&1`; then + NGX_CC_NAME=clang + echo " + using Clang C compiler" + elif `$CC -V 2>&1 | grep 'Sun C' >/dev/null 2>&1`; then NGX_CC_NAME=sunc echo " + using Sun C compiler"