[Lldb-commits] [lldb] r283520 - [lit] Don't assume you'll find debugserver

Hal Finkel via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 6 19:26:41 PDT 2016

Author: hfinkel
Date: Thu Oct  6 21:26:41 2016
New Revision: 283520

URL: http://llvm.org/viewvc/llvm-project?rev=283520&view=rev
[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.


Modified: lldb/trunk/lit/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/lit.cfg?rev=283520&r1=283519&r2=283520&view=diff
--- lldb/trunk/lit/lit.cfg (original)
+++ lldb/trunk/lit/lit.cfg Thu Oct  6 21:26:41 2016
@@ -140,7 +140,9 @@ config.substitutions.append(('%cc', conf
 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"]:

More information about the lldb-commits mailing list