Permalink
Browse files

Backport upstream fixes for latest Clang.

This is required to compile on recent OS Xen.
  • Loading branch information...
1 parent 6fc47a3 commit 55d0a0b11d742e17c1cf287affa337132fef20b1 @metajack metajack committed Apr 1, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/src/build/autoconf/toolchain.m4
@@ -48,13 +48,13 @@ fi
CLANG_CC=
CLANG_CXX=
if test "$GCC" = yes; then
- if test "`$CC -v 2>&1 | grep -c 'clang version'`" != "0"; then
+ if test "`$CC -v 2>&1 | grep -c 'clang version\|Apple.*clang'`" != "0"; then
CLANG_CC=1
fi
fi
if test "$GXX" = yes; then
- if test "`$CXX -v 2>&1 | grep -c 'clang version'`" != "0"; then
+ if test "`$CXX -v 2>&1 | grep -c 'clang version\|Apple.*clang'`" != "0"; then
CLANG_CXX=1
fi
fi

0 comments on commit 55d0a0b

Please sign in to comment.