[PATCH] D39465: Add feature to determine if host architecture is 64-bit in llvm-lit
Jake Ehrlich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 2 16:15:36 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL317281: Add feature to determine if host architecture is 64-bit in llvm-lit (authored by jakehehrlich).
Changed prior to commit:
https://reviews.llvm.org/D39465?vs=121041&id=121406#toc
Repository:
rL LLVM
https://reviews.llvm.org/D39465
Files:
llvm/trunk/test/lit.cfg.py
llvm/trunk/test/lit.site.cfg.py.in
Index: llvm/trunk/test/lit.site.cfg.py.in
===================================================================
--- llvm/trunk/test/lit.site.cfg.py.in
+++ llvm/trunk/test/lit.site.cfg.py.in
@@ -29,7 +29,6 @@
config.native_target = "@LLVM_NATIVE_ARCH@"
config.llvm_bindings = "@LLVM_BINDINGS@".split(' ')
config.host_os = "@HOST_OS@"
-config.host_arch = "@HOST_ARCH@"
config.host_cc = "@HOST_CC@"
config.host_cxx = "@HOST_CXX@"
config.host_ldflags = "@HOST_LDFLAGS@"
@@ -42,6 +41,7 @@
config.build_shared_libs = @BUILD_SHARED_LIBS@
config.link_llvm_dylib = @LLVM_LINK_LLVM_DYLIB@
config.llvm_libxml2_enabled = "@LLVM_LIBXML2_ENABLED@"
+config.llvm_host_triple = '@LLVM_HOST_TRIPLE@'
# Support substitution of the tools_dir with user parameters. This is
# used when we can't determine the tool dir at configuration time.
Index: llvm/trunk/test/lit.cfg.py
===================================================================
--- llvm/trunk/test/lit.cfg.py
+++ llvm/trunk/test/lit.cfg.py
@@ -168,6 +168,9 @@
config.available_features.add(arch.lower() + '-registered-target')
# Features
+known_arches = ["x86_64", "mips64", "ppc64", "aarch64"]
+if any(config.llvm_host_triple.startswith(x) for x in known_arches):
+ config.available_features.add("llvm-64-bits")
# Others/can-execute.txt
if sys.platform not in ['win32']:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39465.121406.patch
Type: text/x-patch
Size: 1339 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171102/e54903bf/attachment.bin>
More information about the llvm-commits
mailing list