summaryrefslogtreecommitdiff
path: root/test/MC/X86/lit.local.cfg
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
commit63054f99af1fd013322e8081227b29656d49a2d2 (patch)
treea72d589989912409394faae59401b1825e1df100 /test/MC/X86/lit.local.cfg
parent6f1d7994155c535455b7543e2af6dce5b65de37b (diff)
downloadllvm-63054f99af1fd013322e8081227b29656d49a2d2.tar.gz
llvm-63054f99af1fd013322e8081227b29656d49a2d2.tar.bz2
llvm-63054f99af1fd013322e8081227b29656d49a2d2.tar.xz
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
Diffstat (limited to 'test/MC/X86/lit.local.cfg')
-rw-r--r--test/MC/X86/lit.local.cfg11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/MC/X86/lit.local.cfg b/test/MC/X86/lit.local.cfg
index 149a9a3256..eee568e8fd 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