llvm.org GIT mirror llvm / 48dbeec
We now look for clang, then llvm-gcc, then gcc as our compiler. We don't need this anymore. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139935 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Christopher 8 years ago
1 changed file(s) with 0 addition(s) and 12 deletion(s). Raw diff Collapse all Expand all
109109 done
110110
111111 PATH=$DIR/bin:$PATH
112 # otherwise, try to use clang if it's available
113 elif [ $DARWIN_VERS -gt 9 ]; then
114 # If the user has set CC or CXX, respect their wishes. If not,
115 # compile with clang/clang++ if available; if LLVM is not
116 # available, fall back to usual GCC/G++ default.
117 savedPATH=$PATH ; PATH="/Developer/usr/bin:$PATH"
118 XTMPCC=$(which clang)
119 if [ x$CC = x -a x$XTMPCC != x ] ; then export CC=$XTMPCC ; fi
120 XTMPCC=$(which clang++)
121 if [ x$CXX = x -a x$XTMPCC != x ] ; then export CXX=$XTMPCC ; fi
122 PATH=$savedPATH
123 unset XTMPCC savedPATH
124112 fi
125113
126114 if [ "$ARM_HOSTED_BUILD" = yes ]; then