]> granicus.if.org Git - clang/commitdiff
Silence warning about not being able to find clang-interpreter
authorRichard Barton <richard.barton@arm.com>
Wed, 7 Oct 2015 11:14:25 +0000 (11:14 +0000)
committerRichard Barton <richard.barton@arm.com>
Wed, 7 Oct 2015 11:14:25 +0000 (11:14 +0000)
This binary is only built with the examples project, so only require it then.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249538 91177308-0d34-0410-b5e6-96231b3b80d8

test/lit.cfg

index 28588eeabe6b8a3dae8995bfb2b701e834157698..2e146191f15559a657715421060732aa2d3cb897 100644 (file)
@@ -308,17 +308,21 @@ NoPreHyphenDot = r"(?<!(-|\.))"
 NoPostHyphenDot = r"(?!(-|\.))"
 NoPostBar = r"(?!(/|\\))"
 
-for pattern in [r"\bFileCheck\b",
-                r"\bc-index-test\b",
-                NoPreHyphenDot + r"\bclang-check\b" + NoPostHyphenDot,
-                NoPreHyphenDot + r"\bclang-format\b" + NoPostHyphenDot,
-                NoPreHyphenDot + r"\bclang-interpreter\b" + NoPostHyphenDot,
-                # FIXME: Some clang test uses opt?
-                NoPreHyphenDot + r"\bopt\b" + NoPostBar + NoPostHyphenDot,
-                # Handle these specially as they are strings searched
-                # for during testing.
-                r"\| \bcount\b",
-                r"\| \bnot\b"]:
+tool_patterns = [r"\bFileCheck\b",
+                 r"\bc-index-test\b",
+                 NoPreHyphenDot + r"\bclang-check\b" + NoPostHyphenDot,
+                 NoPreHyphenDot + r"\bclang-format\b" + NoPostHyphenDot,
+                 # FIXME: Some clang test uses opt?
+                 NoPreHyphenDot + r"\bopt\b" + NoPostBar + NoPostHyphenDot,
+                 # Handle these specially as they are strings searched
+                 # for during testing.
+                 r"\| \bcount\b",
+                 r"\| \bnot\b"]
+
+if config.clang_examples:
+    tool_patterns.append(NoPreHyphenDot + r"\bclang-interpreter\b" + NoPostHyphenDot)
+
+for pattern in tool_patterns:
     # Extract the tool name from the pattern.  This relies on the tool
     # name being surrounded by \b word match operators.  If the
     # pattern starts with "| ", include it in the string to be