[llvm-commits] [llvm-gcc-4.2] r69685 - /llvm-gcc-4.2/trunk/config.guess
Bob Wilson
bob.wilson at apple.com
Tue Apr 21 10:27:55 PDT 2009
Author: bwilson
Date: Tue Apr 21 12:27:55 2009
New Revision: 69685
URL: http://llvm.org/viewvc/llvm-project?rev=69685&view=rev
Log:
pr4005: Detect ARM/Linux system with EABI based on whether the default
compiler defines __ARM_EABI__.
Modified:
llvm-gcc-4.2/trunk/config.guess
Modified: llvm-gcc-4.2/trunk/config.guess
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/config.guess?rev=69685&r1=69684&r2=69685&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/config.guess (original)
+++ llvm-gcc-4.2/trunk/config.guess Tue Apr 21 12:27:55 2009
@@ -829,7 +829,21 @@
echo ${UNAME_MACHINE}-pc-minix
exit ;;
arm*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #undef eabi
+ #if defined(__ARM_EABI__)
+ ARMABI=eabi
+ #else
+ ARMABI=
+ #endif
+EOF
+ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
+ /^ARMABI/{
+ s: ::g
+ p
+ }'`"
+ echo ${UNAME_MACHINE}-unknown-linux-gnu${ARMABI}
exit ;;
avr32*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
More information about the llvm-commits
mailing list