summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-03-09 14:52:38 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-03-09 14:52:38 +0000
commitaebd3da46daf14363dfabacd5e65ca6cbeeb7908 (patch)
tree2800795773a077cc4f33595e9d83241edb7f9b65
parentcca89124a2a9300b2d68b42996ebc14b8d7c2fe0 (diff)
downloadbcm5719-llvm-aebd3da46daf14363dfabacd5e65ca6cbeeb7908.tar.gz
bcm5719-llvm-aebd3da46daf14363dfabacd5e65ca6cbeeb7908.zip
test/MC/X86/lit.local.cfg: Fix up to detect 'X86' in targets.
llvm-svn: 152406
-rw-r--r--llvm/test/MC/X86/lit.local.cfg11
1 files changed, 11 insertions, 0 deletions
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
OpenPOWER on IntegriCloud