Look for llvm-gcc under /Developer/usr/bin first.

llvm-svn: 86023
This commit is contained in:
Evan Cheng 2009-11-04 08:36:50 +00:00
parent 801415706c
commit e83f2304f2

View File

@ -127,7 +127,7 @@ elif [ $DARWIN_VERS -gt 9 ]; then
# If the user has set CC or CXX, respect their wishes. If not,
# compile with LLVM-GCC/LLVM-G++ if available; if LLVM is not
# available, fall back to usual GCC/G++ default.
savedPATH=$PATH ; PATH="$PATH:/Developer/usr/bin"
savedPATH=$PATH ; PATH="/Developer/usr/bin:$PATH"
XTMPCC=$(which llvm-gcc)
if [ x$CC = x -a x$XTMPCC != x ] ; then export CC=$XTMPCC ; fi
XTMPCC=$(which llvm-g++)