projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6f1d799
)
test/MC/X86/lit.local.cfg: Fix up to detect 'X86' in targets.
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Fri, 9 Mar 2012 14:52:38 +0000
(14:52 +0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Fri, 9 Mar 2012 14:52:38 +0000
(14:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152406
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/MC/X86/lit.local.cfg
patch
|
blob
|
history
diff --git
a/test/MC/X86/lit.local.cfg
b/test/MC/X86/lit.local.cfg
index 149a9a3256b8a315b061dd844c96bb8180ae591c..eee568e8fdc2bf0bb0694eac1a7b8fb7b7c958b3 100644
(file)
--- a/
test/MC/X86/lit.local.cfg
+++ b/
test/MC/X86/lit.local.cfg
@@
-1
+1,12
@@
config.suffixes = ['.ll', '.c', '.cpp', '.s']
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