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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86023 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2009-11-04 08:36:50 +00:00
parent 50608bac2f
commit 17fc13f00a

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++)