summaryrefslogtreecommitdiff
path: root/test/CodeGen/XCore/lit.local.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/XCore/lit.local.cfg')
-rw-r--r--test/CodeGen/XCore/lit.local.cfg9
1 files changed, 1 insertions, 8 deletions
diff --git a/test/CodeGen/XCore/lit.local.cfg b/test/CodeGen/XCore/lit.local.cfg
index c697912418..f8726af57f 100644
--- a/test/CodeGen/XCore/lit.local.cfg
+++ b/test/CodeGen/XCore/lit.local.cfg
@@ -1,13 +1,6 @@
config.suffixes = ['.ll', '.c', '.cpp']
-def getRoot(config):
- if not config.parent:
- return config
- return getRoot(config.parent)
-
-root = getRoot(config)
-
-targets = set(root.targets_to_build.split())
+targets = set(config.root.targets_to_build.split())
if not 'XCore' in targets:
config.unsupported = True