[PATCH] D58000: [lldb] [test] Skip lldb-mi test if LLDB_DISABLE_PYTHON is used

Michał Górny via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 11 06:09:24 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL353700: [lldb] [test] Skip lldb-mi test if LLDB_DISABLE_PYTHON is used (authored by mgorny, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D58000?vs=186207&id=186241#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58000/new/

https://reviews.llvm.org/D58000

Files:
  lldb/trunk/lit/helper/toolchain.py
  lldb/trunk/lit/lit.site.cfg.py.in
  lldb/trunk/lit/tools/lldb-mi/lit.local.cfg


Index: lldb/trunk/lit/tools/lldb-mi/lit.local.cfg
===================================================================
--- lldb/trunk/lit/tools/lldb-mi/lit.local.cfg
+++ lldb/trunk/lit/tools/lldb-mi/lit.local.cfg
@@ -0,0 +1,2 @@
+if not "lldb-mi" in config.available_features:
+    config.unsupported = True
Index: lldb/trunk/lit/lit.site.cfg.py.in
===================================================================
--- lldb/trunk/lit/lit.site.cfg.py.in
+++ lldb/trunk/lit/lit.site.cfg.py.in
@@ -17,6 +17,7 @@
 config.have_zlib = @LLVM_ENABLE_ZLIB@
 config.host_triple = "@LLVM_HOST_TRIPLE@"
 config.lldb_bitness = 64 if @LLDB_IS_64_BITS@ else 32
+config.lldb_disable_python = @LLDB_DISABLE_PYTHON@
 
 # Support substitution of the tools and libs dirs with user parameters. This is
 # used when we can't determine the tool dir at configuration time.
Index: lldb/trunk/lit/helper/toolchain.py
===================================================================
--- lldb/trunk/lit/helper/toolchain.py
+++ lldb/trunk/lit/helper/toolchain.py
@@ -52,7 +52,8 @@
 
     llvm_config.add_tool_substitutions(primary_tools,
                                        [config.lldb_tools_dir])
-    if lldbmi.was_resolved:
+    # lldb-mi always fails without Python support
+    if lldbmi.was_resolved and not config.lldb_disable_python:
         config.available_features.add('lldb-mi')
 
 def _use_msvc_substitutions(config):


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58000.186241.patch
Type: text/x-patch
Size: 1412 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190211/b0817b4f/attachment.bin>


More information about the llvm-commits mailing list