forked from OSchip/llvm-project
Fix windows build broken by r335104
lldb-python.h needs to be included first to work around some incompatibilities between windows and python headers. llvm-svn: 335106
This commit is contained in:
parent
ef6cef5b57
commit
af8b24fa41
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue