llvm.org GIT mirror llvm / 125feac
clang is the new black. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137187 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Christopher 8 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
109109 done
110110
111111 PATH=$DIR/bin:$PATH
112 # otherwise, try to use llvm-gcc if it's available
112 # otherwise, try to use clang if it's available
113113 elif [ $DARWIN_VERS -gt 9 ]; then
114114 # If the user has set CC or CXX, respect their wishes. If not,
115 # compile with LLVM-GCC/LLVM-G++ if available; if LLVM is not
115 # compile with clang/clang if available; if LLVM is not
116116 # available, fall back to usual GCC/G++ default.
117117 savedPATH=$PATH ; PATH="/Developer/usr/bin:$PATH"
118 XTMPCC=$(which llvm-gcc)
118 XTMPCC=$(which clang)
119119 if [ x$CC = x -a x$XTMPCC != x ] ; then export CC=$XTMPCC ; fi
120 XTMPCC=$(which llvm-g++)
120 XTMPCC=$(which clang++)
121121 if [ x$CXX = x -a x$XTMPCC != x ] ; then export CXX=$XTMPCC ; fi
122122 PATH=$savedPATH
123123 unset XTMPCC savedPATH