Add missing check for LLDB_DISABLE_PYTHON in FormatManager
llvm-svn: 228856
diff --git a/lldb/source/DataFormatters/FormatManager.cpp b/lldb/source/DataFormatters/FormatManager.cpp
index a60659c..bdd2621 100644
--- a/lldb/source/DataFormatters/FormatManager.cpp
+++ b/lldb/source/DataFormatters/FormatManager.cpp
@@ -1579,7 +1579,9 @@
TypeCategoryImpl::SharedPointer cm_category_sp = GetCategory(m_coremedia_category_name);
+#ifndef LLDB_DISABLE_PYTHON
AddCXXSummary(cm_category_sp, lldb_private::formatters::CMTimeSummaryProvider, "CMTime summary provider", ConstString("CMTime"), cm_flags);
+#endif // LLDB_DISABLE_PYTHON
}
void