comparison auto/cc/name @ 4799:24f2b8495f7d stable-1.2

Merge of r4763: added the Clang compiler support. The -Werror is commented out to not break builds on Linux.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 06 Aug 2012 17:10:35 +0000
parents d1cea70248c7
children f1daa0356a1d
comparison
equal deleted inserted replaced
4798:29928279ec9f 4799:24f2b8495f7d
65 65
66 elif `$CC -v 2>&1 | grep 'gcc version' >/dev/null 2>&1`; then 66 elif `$CC -v 2>&1 | grep 'gcc version' >/dev/null 2>&1`; then
67 NGX_CC_NAME=gcc 67 NGX_CC_NAME=gcc
68 echo " + using GNU C compiler" 68 echo " + using GNU C compiler"
69 69
70 elif `$CC -v 2>&1 | grep 'clang version' >/dev/null 2>&1`; then
71 NGX_CC_NAME=clang
72 echo " + using Clang C compiler"
73
70 elif `$CC -V 2>&1 | grep 'Sun C' >/dev/null 2>&1`; then 74 elif `$CC -V 2>&1 | grep 'Sun C' >/dev/null 2>&1`; then
71 NGX_CC_NAME=sunc 75 NGX_CC_NAME=sunc
72 echo " + using Sun C compiler" 76 echo " + using Sun C compiler"
73 77
74 elif `$CC -V 2>&1 | grep '^Compaq C' >/dev/null 2>&1`; then 78 elif `$CC -V 2>&1 | grep '^Compaq C' >/dev/null 2>&1`; then