[PATCH] Add AArch64 to config.guess
Renato Golin
renato.golin at linaro.org
Wed Feb 19 04:07:20 PST 2014
Hi t.p.northover,
CMake builds use config.guess to find out which arch triple we're targeting, and AArch64:Linux wasn't one of them.
I'm just copying the ARM behaviour, as even if not relevant right now, should be similar in the future?
http://llvm-reviews.chandlerc.com/D2825
Files:
autoconf/config.guess
Index: autoconf/config.guess
===================================================================
--- autoconf/config.guess
+++ autoconf/config.guess
@@ -864,6 +864,22 @@
i*86:Minix:*:*)
echo ${UNAME_MACHINE}-pc-minix
exit ;;
+ aarch64:Linux:*)
+ eval $set_cc_for_build
+ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ARM_EABI__
+ then
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ else
+ if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ARM_PCS_VFP
+ then
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabi
+ else
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
+ fi
+ fi
+ exit ;;
alpha:Linux:*:*)
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
EV5) UNAME_MACHINE=alphaev5 ;;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2825.1.patch
Type: text/x-patch
Size: 787 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140219/d90a8f9e/attachment.bin>
More information about the llvm-commits
mailing list