diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.cpp index b66f9a6b891c..23ae3d3770f6 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +#ifndef LLDB_DISABLE_PYTHON + #include "lldb-python.h" #include "PythonExceptionState.h" @@ -202,4 +204,6 @@ PythonExceptionState::ReadBacktrace() const retval.assign(string_data.data(), string_data.size()); return retval; -} \ No newline at end of file +} + +#endif