From cf7e2dc09a0af91cf15d6e2ec891b3c315c028c8 Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Tue, 21 Feb 2012 05:33:55 +0000 Subject: Patch Enrico's changes from r150558 on 2012-02-14 to build even if Python is not available (LLDB_DISABLE_PYTHON is defined). Change build-swig-Python.sh to emit an empty LLDBPythonWrap.cpp file if this build is LLDB_DISABLE_PYTHON. Change the "Copy to Xcode.app" shell script phase in the lldb.xcodeproj to only do this copying for Mac native builds. llvm-svn: 151035 --- lldb/source/API/SBDebugger.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lldb/source/API/SBDebugger.cpp') diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp index 8150cb04b93..6628c1aa1f5 100644 --- a/lldb/source/API/SBDebugger.cpp +++ b/lldb/source/API/SBDebugger.cpp @@ -1135,6 +1135,7 @@ SBDebugger::GetFormatForType (SBTypeNameSpecifier type_name) return SBTypeFormat(); } +#ifndef LLDB_DISABLE_PYTHON SBTypeSummary SBDebugger::GetSummaryForType (SBTypeNameSpecifier type_name) { @@ -1158,6 +1159,7 @@ SBDebugger::GetSummaryForType (SBTypeNameSpecifier type_name) } return summary_chosen; } +#endif // LLDB_DISABLE_PYTHON SBTypeFilter SBDebugger::GetFilterForType (SBTypeNameSpecifier type_name) @@ -1183,6 +1185,7 @@ SBDebugger::GetFilterForType (SBTypeNameSpecifier type_name) return filter_chosen; } +#ifndef LLDB_DISABLE_PYTHON SBTypeSynthetic SBDebugger::GetSyntheticForType (SBTypeNameSpecifier type_name) { @@ -1206,6 +1209,7 @@ SBDebugger::GetSyntheticForType (SBTypeNameSpecifier type_name) } return synth_chosen; } +#endif // LLDB_DISABLE_PYTHON bool SBDebugger::EnableLog (const char *channel, const char **categories) -- cgit v1.2.3