Skip to content

Commit

Permalink
Configure: fixed detection of newer Apple clang compilers.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdocguard committed Apr 29, 2013
1 parent 8bc3ed7 commit e565dbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions auto/cc/clang
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# clang


NGX_CLANG_VER=`$CC -v 2>&1 | grep 'clang version' 2>&1 \
| sed -e 's/^.*clang version \(.*\)/\1/'`
NGX_CLANG_VER=`$CC -v 2>&1 | grep '\(clang\|LLVM\) version' 2>&1 \
| sed -e 's/^.* version \(.*\)/\1/'`

echo " + clang version: $NGX_CLANG_VER"

Expand Down
2 changes: 1 addition & 1 deletion auto/cc/name
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ elif `$CC -v 2>&1 | grep 'gcc version' >/dev/null 2>&1`; then
NGX_CC_NAME=gcc
echo " + using GNU C compiler"

elif `$CC -v 2>&1 | grep 'clang version' >/dev/null 2>&1`; then
elif `$CC -v 2>&1 | grep '\(clang\|LLVM\) version' >/dev/null 2>&1`; then
NGX_CC_NAME=clang
echo " + using Clang C compiler"

Expand Down

0 comments on commit e565dbc

Please sign in to comment.