Changeset 3818
- Timestamp:
- Oct 17, 2011 7:22:45 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x/configure-iphone
r3462 r3818 72 72 73 73 if test "${CC}" = ""; then 74 for archpath in `ls -d ${SDKPATH}/usr/lib/gcc/arm-apple-darwin*`; do 75 archname=`basename ${archpath}` 76 for gccver in `ls ${archpath}`; do 77 gccpath="${DEVPATH}/usr/bin/${archname}-gcc-${gccver}" 78 if test -e ${gccpath}; then 79 export CC="${gccpath}" 80 # break 81 fi 74 # Try to use llvm-gcc if available 75 gccpath="${DEVPATH}/usr/bin/llvm-gcc" 76 if test -e ${gccpath}; then 77 export CC="${gccpath}" 78 79 if test "${ARCH}" = ""; then 80 export ARCH="-arch armv7" 81 echo "$F: ARCH is not specified, choosing ${ARCH}" 82 fi 83 else 84 for archpath in `ls -d ${SDKPATH}/usr/lib/gcc/arm-apple-darwin*`; do 85 archname=`basename ${archpath}` 86 for gccver in `ls ${archpath}`; do 87 gccpath="${DEVPATH}/usr/bin/${archname}-gcc-${gccver}" 88 if test -e ${gccpath}; then 89 export CC="${gccpath}" 90 fi 91 done 82 92 done 83 if test ! "${CC}" = ""; then 84 echo "$F: CC is not specified, choosing ${CC}" 85 break 86 fi 87 done 93 fi 94 if test ! "${CC}" = ""; then 95 echo "$F: CC is not specified, choosing ${CC}" 96 fi 88 97 fi 89 98
Note: See TracChangeset
for help on using the changeset viewer.