aboutsummaryrefslogtreecommitdiff
path: root/test/lit.cfg.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/lit.cfg.py')
-rw-r--r--test/lit.cfg.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lit.cfg.py b/test/lit.cfg.py
index 6a5cf69b987..73a3b4b58a8 100644
--- a/test/lit.cfg.py
+++ b/test/lit.cfg.py
@@ -168,6 +168,10 @@ for arch in config.targets_to_build.split():
config.available_features.add(arch.lower() + '-registered-target')
# Features
+known_arches = ["x86_64", "mips64", "ppc64", "aarch64"]
+if (config.host_ldflags.find("-m32") < 0
+ and 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']: