diff options
-rw-r--r-- | lldb/source/API/SBHostOS.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/source/API/SBHostOS.cpp b/lldb/source/API/SBHostOS.cpp index 812d6a7e4b6..e56951df43b 100644 --- a/lldb/source/API/SBHostOS.cpp +++ b/lldb/source/API/SBHostOS.cpp @@ -7,6 +7,10 @@ // //===----------------------------------------------------------------------===// +#ifndef LLDB_DISABLE_PYTHON +#include "Plugins/ScriptInterpreter/Python/lldb-python.h" +#endif + #include "lldb/API/SBHostOS.h" #include "lldb/API/SBError.h" #include "lldb/Host/Host.h" @@ -18,7 +22,9 @@ #include "lldb/Utility/Log.h" #include "Plugins/ExpressionParser/Clang/ClangHost.h" +#ifndef LLDB_DISABLE_PYTHON #include "Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h" +#endif #include "llvm/ADT/SmallString.h" #include "llvm/Support/Path.h" @@ -49,7 +55,9 @@ SBFileSpec SBHostOS::GetLLDBPath(lldb::PathType path_type) { fspec = HostInfo::GetHeaderDir(); break; case ePathTypePythonDir: +#ifndef LLDB_DISABLE_PYTHON fspec = ScriptInterpreterPython::GetPythonDir(); +#endif break; case ePathTypeLLDBSystemPlugins: fspec = HostInfo::GetSystemPluginDir(); |