mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 01:15:50 +08:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user