[Lldb-commits] [lldb] r268626 - Guard AddCXXSynthetic with LLDB_DISABLE_PYTHON

Tamas Berghammer via lldb-commits lldb-commits at lists.llvm.org
Thu May 5 05:46:46 PDT 2016


Author: tberghammer
Date: Thu May  5 07:46:45 2016
New Revision: 268626

URL: http://llvm.org/viewvc/llvm-project?rev=268626&view=rev
Log:
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.

Modified:
    lldb/trunk/source/Plugins/Language/Java/JavaLanguage.cpp

Modified: lldb/trunk/source/Plugins/Language/Java/JavaLanguage.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Language/Java/JavaLanguage.cpp?rev=268626&r1=268625&r2=268626&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Language/Java/JavaLanguage.cpp (original)
+++ lldb/trunk/source/Plugins/Language/Java/JavaLanguage.cpp Thu May  5 07:46:45 2016
@@ -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;




More information about the lldb-commits mailing list