2013-08-16 00:37:11 +00:00
|
|
|
root = config.root
|
2014-06-09 22:42:55 +00:00
|
|
|
targets = root.targets
|
2013-05-04 20:14:22 +00:00
|
|
|
if ('X86' in targets) | ('AArch64' in targets) | ('ARM' in targets) | \
|
2013-05-06 16:21:50 +00:00
|
|
|
('Mips' in targets) | ('PowerPC' in targets) | ('SystemZ' in targets):
|
2012-05-17 21:07:47 +00:00
|
|
|
config.unsupported = False
|
|
|
|
else:
|
|
|
|
config.unsupported = True
|
|
|
|
|
2013-06-03 19:17:21 +00:00
|
|
|
# FIXME: autoconf and cmake produce different arch names. We should normalize
|
|
|
|
# them before getting here.
|
2014-01-10 10:38:46 +00:00
|
|
|
if root.host_arch not in ['i386', 'x86', 'x86_64', 'AMD64',
|
2013-06-03 19:17:21 +00:00
|
|
|
'AArch64', 'ARM', 'Mips', 'PowerPC', 'ppc64', 'SystemZ']:
|
2012-05-17 21:07:47 +00:00
|
|
|
config.unsupported = True
|
2012-11-20 10:49:01 +00:00
|
|
|
|
2013-05-18 19:42:07 +00:00
|
|
|
if 'armv7' in root.host_arch:
|
|
|
|
config.unsupported = False
|
|
|
|
|
2013-09-13 10:59:01 +00:00
|
|
|
if 'i386-apple-darwin' in root.target_triple:
|
2013-04-29 21:09:32 +00:00
|
|
|
config.unsupported = True
|
|
|
|
|
2012-11-20 10:49:01 +00:00
|
|
|
if 'powerpc' in root.target_triple and not 'powerpc64' in root.target_triple:
|
|
|
|
config.unsupported = True
|
2013-09-13 10:59:01 +00:00
|
|
|
|
|
|
|
# ExecutionEngine tests are not expected to pass in a cross-compilation setup.
|
|
|
|
if 'native' not in config.available_features:
|
|
|
|
config.unsupported = True
|