• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1root = config.root
2targets = root.targets
3if ('X86' in targets) | ('AArch64' in targets) | ('ARM' in targets) | \
4   ('Mips' in targets) | ('PowerPC' in targets) | ('SystemZ' in targets):
5    config.unsupported = False
6else:
7    config.unsupported = True
8
9# FIXME: autoconf and cmake produce different arch names. We should normalize
10# them before getting here.
11if root.host_arch not in ['i386', 'x86', 'x86_64', 'AMD64',
12                          'AArch64', 'ARM', 'Mips',
13                          'PowerPC', 'ppc64', 'ppc64le', 'SystemZ']:
14    config.unsupported = True
15
16if 'armv7' in root.host_arch:
17    config.unsupported = False
18
19if 'i386-apple-darwin' in root.target_triple:
20    config.unsupported = True
21
22if 'powerpc' in root.target_triple and not 'powerpc64' in root.target_triple:
23    config.unsupported = True
24
25# ExecutionEngine tests are not expected to pass in a cross-compilation setup.
26if 'native' not in config.available_features:
27    config.unsupported = True
28