From 1a100cd78f70f13fe20d0e4a65c8d3d042014923 Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Sat, 12 Jan 2013 04:24:50 +0000 Subject: [PATCH] Add ifdef LLDB_DISABLE_PYTHON around newly added use of AddCXXSummary in FormatManager::LoadSystemFormatters(); that function pulls in code that assumes python; can't be used without the ifdef. llvm-svn: 172300 --- lldb/source/Core/FormatManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lldb/source/Core/FormatManager.cpp b/lldb/source/Core/FormatManager.cpp index edcccc88ef5f..857235052307 100644 --- a/lldb/source/Core/FormatManager.cpp +++ b/lldb/source/Core/FormatManager.cpp @@ -958,6 +958,7 @@ FormatManager::LoadSystemFormatters() sys_category_sp->GetSummaryNavigator()->Add(ConstString("OSType"), ostype_summary); +#ifndef LLDB_DISABLE_PYTHON // FIXME because of a bug in the FormatNavigator we need to add a summary for both X* and const X* () AddCXXSummary(sys_category_sp, lldb_private::formatters::Char16StringSummaryProvider, "char16_t * summary provider", ConstString("char16_t *"), string_flags); AddCXXSummary(sys_category_sp, lldb_private::formatters::Char16StringSummaryProvider, "char16_t * summary provider", ConstString("const char16_t *"), string_flags); @@ -967,6 +968,7 @@ FormatManager::LoadSystemFormatters() AddCXXSummary(sys_category_sp, lldb_private::formatters::WCharStringSummaryProvider, "wchar_t * summary provider", ConstString("wchar_t *"), string_flags); AddCXXSummary(sys_category_sp, lldb_private::formatters::WCharStringSummaryProvider, "wchar_t * summary provider", ConstString("const wchar_t *"), string_flags); +#endif } void