diff --git a/llvm/test/tools/llvm-exegesis/PowerPC/lit.local.cfg b/llvm/test/tools/llvm-exegesis/PowerPC/lit.local.cfg --- a/llvm/test/tools/llvm-exegesis/PowerPC/lit.local.cfg +++ b/llvm/test/tools/llvm-exegesis/PowerPC/lit.local.cfg @@ -1,3 +1,6 @@ if not ('PowerPC' in config.root.targets): # We need support for PowerPC. config.unsupported = True +elif not ('powerpc' in config.root.host_triple): + # We need to be running on an PPC host. + config.unsupported = True diff --git a/llvm/test/tools/llvm-exegesis/X86/lit.local.cfg b/llvm/test/tools/llvm-exegesis/X86/lit.local.cfg --- a/llvm/test/tools/llvm-exegesis/X86/lit.local.cfg +++ b/llvm/test/tools/llvm-exegesis/X86/lit.local.cfg @@ -1,3 +1,6 @@ if not ('X86' in config.root.targets): # We need support for X86. config.unsupported = True +elif not ('x86_64' in config.root.host_triple): + # We need to be running on an X86 host. + config.unsupported = True