mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-02 15:51:54 +00:00
clang is the new black.
llvm-svn: 137187
This commit is contained in:
parent
f7f4398587
commit
9d54b488e0
@ -110,15 +110,15 @@ if [ "$ARM_HOSTED_BUILD" = yes ]; then
|
||||
done
|
||||
|
||||
PATH=$DIR/bin:$PATH
|
||||
# otherwise, try to use llvm-gcc if it's available
|
||||
# otherwise, try to use clang if it's available
|
||||
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
|
||||
# compile with clang/clang if available; if LLVM is not
|
||||
# available, fall back to usual GCC/G++ default.
|
||||
savedPATH=$PATH ; PATH="/Developer/usr/bin:$PATH"
|
||||
XTMPCC=$(which llvm-gcc)
|
||||
XTMPCC=$(which clang)
|
||||
if [ x$CC = x -a x$XTMPCC != x ] ; then export CC=$XTMPCC ; fi
|
||||
XTMPCC=$(which llvm-g++)
|
||||
XTMPCC=$(which clang++)
|
||||
if [ x$CXX = x -a x$XTMPCC != x ] ; then export CXX=$XTMPCC ; fi
|
||||
PATH=$savedPATH
|
||||
unset XTMPCC savedPATH
|
||||
|
Loading…
x
Reference in New Issue
Block a user