From: Roman Divacky Date: Sat, 4 Jun 2011 06:15:42 +0000 (+0000) Subject: Use processor name in the target triple. This fixes PowerPC64 to generate X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=3de510e74ee8118be59543726d8b721cbb3d4bb8;p=oota-llvm.git Use processor name in the target triple. This fixes PowerPC64 to generate 64bit code for example. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132627 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/autoconf/config.guess b/autoconf/config.guess index 865fe53d6b1..9807c916b81 100755 --- a/autoconf/config.guess +++ b/autoconf/config.guess @@ -789,13 +789,12 @@ EOF echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) + UNAME_PROCESSOR=`/usr/bin/uname -p` case ${UNAME_MACHINE} in - pc98) - echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*)