From aebd3da46daf14363dfabacd5e65ca6cbeeb7908 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Fri, 9 Mar 2012 14:52:38 +0000 Subject: test/MC/X86/lit.local.cfg: Fix up to detect 'X86' in targets. llvm-svn: 152406 --- llvm/test/MC/X86/lit.local.cfg | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'llvm/test') diff --git a/llvm/test/MC/X86/lit.local.cfg b/llvm/test/MC/X86/lit.local.cfg index 149a9a3256b..eee568e8fdc 100644 --- a/llvm/test/MC/X86/lit.local.cfg +++ b/llvm/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 -- cgit v1.2.3