[Lldb-commits] [lldb] r251104 - Fix the build when building with LLDB_DISABLE_PYTHON.
Aidan Dodds via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 23 03:27:17 PDT 2015
Author: aidandodds
Date: Fri Oct 23 05:27:16 2015
New Revision: 251104
URL: http://llvm.org/viewvc/llvm-project?rev=251104&view=rev
Log:
Fix the build when building with LLDB_DISABLE_PYTHON.
Modified:
lldb/trunk/tools/lldb-mi/MICmnLLDBDebugger.cpp
Modified: lldb/trunk/tools/lldb-mi/MICmnLLDBDebugger.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-mi/MICmnLLDBDebugger.cpp?rev=251104&r1=251103&r2=251104&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-mi/MICmnLLDBDebugger.cpp (original)
+++ lldb/trunk/tools/lldb-mi/MICmnLLDBDebugger.cpp Fri Oct 23 05:27:16 2015
@@ -58,8 +58,12 @@ static inline bool
MI_add_summary(lldb::SBTypeCategory category, const char *typeName, lldb::SBTypeSummary::FormatCallback cb,
uint32_t options, bool regex = false)
{
+#if defined(LLDB_DISABLE_PYTHON)
+ return false;
+#else
lldb::SBTypeSummary summary = lldb::SBTypeSummary::CreateWithCallback(cb, options);
return summary.IsValid() ? category.AddTypeSummary(lldb::SBTypeNameSpecifier(typeName, regex), summary) : false;
+#endif
}
//++ ------------------------------------------------------------------------------------
More information about the lldb-commits
mailing list