Changeset 4588 for pjproject/trunk/configure-iphone
- Timestamp:
- Sep 5, 2013 2:15:19 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/configure-iphone
r4282 r4588 19 19 echo " SDK." 20 20 echo " ARCH Optional flags to specify target architecture, e.g." 21 echo " ARCH='-arch armv6'"21 echo " ARCH='-arch armv6'. Default is armv7." 22 22 echo "" 23 23 exit 0 … … 75 75 76 76 if test "${CC}" = ""; then 77 # Try to use llvm-gcc if available 77 # Try to use clang if available 78 ccpath="${DEVPATH}/../../../Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" 79 # Next, try to use llvm-gcc 78 80 gccpath="${DEVPATH}/usr/bin/llvm-gcc" 79 if test -e ${gccpath}; then 81 if test -e ${ccpath}; then 82 export CC="${ccpath}" 83 elif test -e ${gccpath}; then 80 84 export CC="${gccpath}" 81 82 if test "${ARCH}" = ""; then83 export ARCH="-arch armv7"84 echo "$F: ARCH is not specified, choosing ${ARCH}"85 fi86 85 else 87 86 for archpath in `ls -d ${SDKPATH}/usr/lib/gcc/arm-apple-darwin*`; do … … 103 102 echo "$F error: unable to find gcc for ${IPHONESDK}. If you think you have the right gcc, set the full path in CC environment variable." 104 103 exit 1 104 fi 105 106 if test "${ARCH}" = ""; then 107 export ARCH="-arch armv7" 108 echo "$F: ARCH is not specified, choosing ${ARCH}" 105 109 fi 106 110
Note: See TracChangeset
for help on using the changeset viewer.