From 8aeca44558234ae3703c565854c31d38034e56cb Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Mon, 9 Jun 2014 22:42:55 +0000 Subject: Reduce verbiage of lit.local.cfg files We can just split targets_to_build in one place and make it immutable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210496 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/TestingGuide.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/TestingGuide.rst b/docs/TestingGuide.rst index f9222372c2..481be55b57 100644 --- a/docs/TestingGuide.rst +++ b/docs/TestingGuide.rst @@ -304,8 +304,7 @@ For instance, on ``test/CodeGen/ARM``, the ``lit.local.cfg`` is: .. code-block:: python config.suffixes = ['.ll', '.c', '.cpp', '.test'] - targets = set(config.root.targets_to_build.split()) - if not 'ARM' in targets: + if not 'ARM' in config.root.targets: config.unsupported = True Other platform-specific tests are those that depend on a specific feature -- cgit v1.2.3