From: NAKAMURA Takumi Date: Fri, 9 Mar 2012 14:52:38 +0000 (+0000) Subject: test/MC/X86/lit.local.cfg: Fix up to detect 'X86' in targets. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=63054f99af1fd013322e8081227b29656d49a2d2;p=oota-llvm.git test/MC/X86/lit.local.cfg: Fix up to detect 'X86' in targets. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152406 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/MC/X86/lit.local.cfg b/test/MC/X86/lit.local.cfg index 149a9a3256b..eee568e8fdc 100644 --- a/test/MC/X86/lit.local.cfg +++ b/test/MC/X86/lit.local.cfg @@ -1 +1,12 @@ config.suffixes = ['.ll', '.c', '.cpp', '.s'] + +def getRoot(config): + if not config.parent: + return config + return getRoot(config.parent) + +root = getRoot(config) + +targets = set(root.targets_to_build.split()) +if not 'X86' in targets: + config.unsupported = True