[llvm-commits] [llvm] r152406 - /llvm/trunk/test/MC/X86/lit.local.cfg
NAKAMURA Takumi
geek4civic at gmail.com
Fri Mar 9 06:52:38 PST 2012
Author: chapuni
Date: Fri Mar 9 08:52:38 2012
New Revision: 152406
URL: http://llvm.org/viewvc/llvm-project?rev=152406&view=rev
Log:
test/MC/X86/lit.local.cfg: Fix up to detect 'X86' in targets.
Modified:
llvm/trunk/test/MC/X86/lit.local.cfg
Modified: llvm/trunk/test/MC/X86/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/X86/lit.local.cfg?rev=152406&r1=152405&r2=152406&view=diff
==============================================================================
--- llvm/trunk/test/MC/X86/lit.local.cfg (original)
+++ llvm/trunk/test/MC/X86/lit.local.cfg Fri Mar 9 08:52:38 2012
@@ -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
More information about the llvm-commits
mailing list