mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-09 17:43:57 +00:00
Silence warning about not being able to find clang-interpreter
This binary is only built with the examples project, so only require it then. llvm-svn: 249538
This commit is contained in:
parent
9004cc7942
commit
1448fdc426
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user