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