From d68983e3d5168bcd1f156232bff7101561cb44fb Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Thu, 21 Jun 2018 17:36:32 +0000 Subject: Partially revert r335236 Jim pointed out that XCode has build configurations that build without python and removing the ifdefs around the python code breaks them. This reverts the #ifdef part of the above patch, while keeping the cmake parts. llvm-svn: 335260 --- .../Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h') diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h index 527853b..628b71f 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h @@ -10,6 +10,12 @@ #ifndef LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_SCRIPTINTERPRETERPYTHON_H #define LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_SCRIPTINTERPRETERPYTHON_H +#ifdef LLDB_DISABLE_PYTHON + +// Python is disabled in this build + +#else + // C Includes // C++ Includes #include @@ -565,4 +571,6 @@ protected: } // namespace lldb_private +#endif // LLDB_DISABLE_PYTHON + #endif // LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_SCRIPTINTERPRETERPYTHON_H -- cgit v1.1