Guard AddCXXSynthetic with LLDB_DISABLE_PYTHON

The function only avaibleble when python is enabled. Guard the new call
in the Java plugin with LLDB_DISABLE_PYTHON until we can change
AddCXXSynthetic to be available in all case to get the build bots green
again.

llvm-svn: 268626
This commit is contained in:
Tamas Berghammer 2016-05-05 12:46:45 +00:00
parent cff1935330
commit 21c3fdeda8
1 changed files with 2 additions and 0 deletions

View File

@ -101,9 +101,11 @@ JavaLanguage::GetFormatters()
g_category->GetRegexTypeSummariesContainer()->Add(RegularExpressionSP(new RegularExpression(array_regexp)),
array_summary_sp);
#ifndef LLDB_DISABLE_PYTHON
AddCXXSynthetic(g_category, lldb_private::formatters::JavaArraySyntheticFrontEndCreator,
"Java array synthetic children", ConstString(array_regexp),
SyntheticChildren::Flags().SetCascades(true), true);
#endif
}
});
return g_category;