mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
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
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user