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): 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/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