[PATCH] Add AArch64 support to CMake
Renato Golin
renato.golin at linaro.org
Wed Feb 19 04:25:31 PST 2014
Changing EE's lit config to check for target, not host_arch. This makes the tests unsupported on AArch64 (where the host arch is "aarch64").
Hi t.p.northover,
http://llvm-reviews.chandlerc.com/D2825
CHANGE SINCE LAST DIFF
http://llvm-reviews.chandlerc.com/D2825?vs=7202&id=7203#toc
Files:
autoconf/config.guess
test/ExecutionEngine/lit.local.cfg
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 ;;
Index: test/ExecutionEngine/lit.local.cfg
===================================================================
--- test/ExecutionEngine/lit.local.cfg
+++ test/ExecutionEngine/lit.local.cfg
@@ -1,4 +1,5 @@
-if config.root.host_arch in ['PowerPC', 'AArch64', 'SystemZ']:
+targets = set(config.root.targets_to_build.split())
+if 'AArch64' in targets or 'PowerPC' in targets or 'SystemZ' in targets:
config.unsupported = True
if 'hexagon' in config.root.target_triple:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2825.2.patch
Type: text/x-patch
Size: 1259 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140219/3a5afc28/attachment.bin>
More information about the llvm-commits
mailing list