[lit] Don't assume you'll find debugserver

On Linux, there is no "debugserver" process, and the RUN-line substitution will
fail if you try to substitute '%debugserver' with None.

Fixes PR30492.

llvm-svn: 283520
This commit is contained in:
Hal Finkel 2016-10-07 02:26:41 +00:00
parent 5d41f03215
commit 752c5bab03
1 changed files with 3 additions and 1 deletions

View File

@ -140,7 +140,9 @@ config.substitutions.append(('%cc', config.cc))
config.substitutions.append(('%cxx', config.cxx))
config.substitutions.append(('%lldb', lldb))
config.substitutions.append(('%debugserver', debugserver))
if debugserver is not None:
config.substitutions.append(('%debugserver', debugserver))
for pattern in [r"\bFileCheck\b",
r"\| \bnot\b"]: