mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-20 20:30:56 +00:00
Migrate this to use clang by default as well.
llvm-svn: 139936
This commit is contained in:
parent
3163b0a2ce
commit
2e1f5823a1
@ -97,13 +97,10 @@ if [ "$ARM_HOSTED_BUILD" = yes ]; then
|
||||
echo 'exec '$T' "$@"' >> $P || exit 1
|
||||
chmod a+x $P || exit 1
|
||||
done
|
||||
# Try to use the platform llvm-gcc. Fall back to gcc if it's not available.
|
||||
for prog in gcc g++ ; do
|
||||
# Set up the links for clang.
|
||||
for prog in clang clang++ ; do
|
||||
P=$DIR/bin/arm-apple-darwin$DARWIN_VERS-${prog}
|
||||
T=`xcrun -sdk $SDKROOT -find llvm-${prog}`
|
||||
if [ "x$T" = "x" ] ; then
|
||||
T=`xcrun -sdk $SDKROOT -find ${prog}`
|
||||
fi
|
||||
T=`xcrun -sdk $SDKROOT -find ${prog}`
|
||||
echo '#!/bin/sh' > $P || exit 1
|
||||
echo 'exec '$T' -arch armv7 -isysroot '${SDKROOT}' "$@"' >> $P || exit 1
|
||||
chmod a+x $P || exit 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user