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