From 1f1c5a7b441eb30592b066f6910eabbeff4e662e Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Fri, 13 Nov 2015 20:28:31 +0000 Subject: [PATCH] Another fix for LLDB_DISABLE_PYTHON=1 llvm-svn: 253073 --- .../ScriptInterpreter/Python/PythonExceptionState.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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