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) | ('ARM' in targets) | ('Mips' in targets): 12 config.unsupported = False 13else: 14 config.unsupported = True 15 16if root.host_arch not in ['x86', 'x86_64', 'ARM', 'Mips']: 17 config.unsupported = True 18 19if root.host_os in ['Win32', 'Cygwin', 'MingW', 'Windows', 'Darwin']: 20 config.unsupported = True 21