Add "native" to config.available_features, to make it easier to disable non-x-compile...
authorAmaury de la Vieuville <amaury.dlv@gmail.com>
Fri, 13 Sep 2013 10:59:01 +0000 (10:59 +0000)
committerAmaury de la Vieuville <amaury.dlv@gmail.com>
Fri, 13 Sep 2013 10:59:01 +0000 (10:59 +0000)
Patch by Artyom Skrobov!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190679 91177308-0d34-0410-b5e6-96231b3b80d8

test/ExecutionEngine/MCJIT/lit.local.cfg
test/ExecutionEngine/lit.local.cfg
test/lit.cfg

index bad4c8cf39ac8e1ea35ef06f41da3b736587abbc..fdb36ee1d71ce723ce4f81cd90933c1759259226 100644 (file)
@@ -15,8 +15,12 @@ if root.host_arch not in ['i386', 'x86', 'x86_64',
 if 'armv7' in root.host_arch:
     config.unsupported = False
 
-if 'i386-apple-darwin'  in root.target_triple:
+if 'i386-apple-darwin' in root.target_triple:
     config.unsupported = True
 
 if 'powerpc' in root.target_triple and not 'powerpc64' in root.target_triple:
     config.unsupported = True
+
+# ExecutionEngine tests are not expected to pass in a cross-compilation setup.
+if 'native' not in config.available_features:
+    config.unsupported = True
index 215ecaeeda0e60abd8e90e79fdf0dd33d71d99d4..28c56ad9c5c2405f9d9eb4faa7f2646a12c7cf78 100644 (file)
@@ -3,3 +3,7 @@ if config.root.host_arch in ['PowerPC', 'AArch64', 'SystemZ']:
 
 if 'hexagon' in config.root.target_triple:
     config.unsupported = True
+
+# ExecutionEngine tests are not expected to pass in a cross-compilation setup.
+if 'native' not in config.available_features:
+    config.unsupported = True
index 3ee9edc8e6a0c2e3449044a8f72e32b55ee46553..9e4e0b0229fe9763e6e7c4b1a29db34d0549293d 100644 (file)
@@ -279,6 +279,10 @@ if not 'hexagon' in config.target_triple:
 if config.have_zlib == "1":
     config.available_features.add("zlib")
 
+# Native compilation: host arch == target arch
+if config.host_arch in config.target_triple:
+    config.available_features.add("native")
+
 # llc knows whether he is compiled with -DNDEBUG.
 import subprocess
 try: