• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1config.suffixes = ['.ll', '.c', '.cpp']
2
3def getRoot(config):
4    if not config.parent:
5        return config
6    return getRoot(config.parent)
7
8root = getRoot(config)
9
10targets = set(root.targets_to_build.split())
11if ('X86' in targets) | ('AArch64' in targets) | ('ARM' in targets) | \
12   ('Mips' in targets) | ('PowerPC' in targets) | ('SystemZ' in targets):
13    config.unsupported = False
14else:
15    config.unsupported = True
16
17# FIXME: autoconf and cmake produce different arch names. We should normalize
18# them before getting here.
19if root.host_arch not in ['i386', 'x86', 'x86_64',
20                          'AArch64', 'ARM', 'Mips', 'PowerPC', 'ppc64', 'SystemZ']:
21    config.unsupported = True
22
23if 'armv7' in root.host_arch:
24    config.unsupported = False
25
26if 'i386-apple-darwin'  in root.target_triple:
27    config.unsupported = True
28
29if 'powerpc' in root.target_triple and not 'powerpc64' in root.target_triple:
30    config.unsupported = True
31