Add "native" to config.available_features, to make it easier to disable non-x-compile-safe tests

Patch by Artyom Skrobov!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190679 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Amaury de la Vieuville 2013-09-13 10:59:01 +00:00
parent 6f74b140c4
commit 2c9d79beee
3 changed files with 13 additions and 1 deletions

View 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

View 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

View 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: