mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
Use llvm-gcc to build ARM when it's available
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98770 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
87949d4d5a
commit
11cb87c259
@ -106,11 +106,10 @@ if [ "x$RC_ProjectName" = "xllvmCore_EmbeddedHosted" ]; then
|
||||
# Try to use the platform llvm-gcc. Fall back to gcc if it's not available.
|
||||
for prog in gcc g++ ; do
|
||||
P=$DIR/bin/arm-apple-darwin$DARWIN_VERS-${prog}
|
||||
# FIXME: Uncomment once llvm-gcc works for this
|
||||
# T=`xcrun -find llvm-${prog}`
|
||||
# if [ "x$T" = "x" ] ; then
|
||||
T=`xcrun -find llvm-${prog}`
|
||||
if [ "x$T" = "x" ] ; then
|
||||
T=`xcrun -sdk $SDKROOT -find ${prog}`
|
||||
# fi
|
||||
fi
|
||||
echo '#!/bin/sh' > $P || exit 1
|
||||
echo 'exec '$T' -arch armv6 -isysroot '${SDKROOT}' "$@"' >> $P || exit 1
|
||||
chmod a+x $P || exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user