summaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Interpreter/ScriptInterpreterPython.cpp')
-rw-r--r--lldb/source/Interpreter/ScriptInterpreterPython.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreterPython.cpp b/lldb/source/Interpreter/ScriptInterpreterPython.cpp
index ee356900e85b..213a69ed922c 100644
--- a/lldb/source/Interpreter/ScriptInterpreterPython.cpp
+++ b/lldb/source/Interpreter/ScriptInterpreterPython.cpp
@@ -9,6 +9,11 @@
// In order to guarantee correct working with Python, Python.h *MUST* be
// the *FIRST* header file included here.
+#ifdef LLDB_DISABLE_PYTHON
+
+// Python is disabled in this build
+
+#else
#if defined (__APPLE__)
#include <Python/Python.h>
@@ -1998,3 +2003,5 @@ ScriptInterpreterPython::InitializePrivate ()
// //
//// Py_Finalize ();
//}
+
+#endif // #ifdef LLDB_DISABLE_PYTHON