Add "native" to config.available_features, to make it easier to disable non-x-compile-safe tests
Patch by Artyom Skrobov! llvm-svn: 190679
This commit is contained in:
parent
f3d977979c
commit
9fd5e53f1d
|
@ -20,3 +20,7 @@ if 'i386-apple-darwin' in root.target_triple:
|
|||
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue