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 --- lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h') diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h b/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h index c099863..f929baad 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h @@ -13,6 +13,9 @@ // Python.h needs to be included before any system headers in order to avoid // redefinition of macros +#ifdef LLDB_DISABLE_PYTHON +// Python is disabled in this build +#else #include "llvm/Support/Compiler.h" #if defined(_WIN32) // If anyone #includes Host/PosixApi.h later, it will try to typedef pid_t. We @@ -32,5 +35,6 @@ // Include python for non windows machines #include +#endif // LLDB_DISABLE_PYTHON #endif // LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_LLDB_PYTHON_H -- cgit v1.1