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 --- .../source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp') diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp index 671e8f9..6a9d57d 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp @@ -7,6 +7,12 @@ // //===----------------------------------------------------------------------===// +#ifdef LLDB_DISABLE_PYTHON + +// Python is disabled in this build + +#else + #include "PythonDataObjects.h" #include "ScriptInterpreterPython.h" @@ -1028,3 +1034,5 @@ bool PythonFile::GetUnderlyingFile(File &file) const { file.SetOptions(PythonFile::GetOptionsFromMode(py_mode.GetString())); return file.IsValid(); } + +#endif -- cgit v1.1