aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
diff options
context:
space:
mode:
authorMed Ismail Bennani <ismail@bennani.ma>2024-07-25 13:31:54 -0700
committerMed Ismail Bennani <ismail@bennani.ma>2024-07-25 13:32:24 -0700
commitc1d1a752cea105dba1aa999bc90feb5faa974bec (patch)
tree9efbee88014d7b55be20cbd3857fbfba62c44bbb /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
parent5909979869edca359bcbca74042c2939d900680e (diff)
downloadllvm-c1d1a752cea105dba1aa999bc90feb5faa974bec.zip
llvm-c1d1a752cea105dba1aa999bc90feb5faa974bec.tar.gz
llvm-c1d1a752cea105dba1aa999bc90feb5faa974bec.tar.bz2
[lldb/Plugins] Fix build failure on windows following 2914a4b88837
This patch tries to fix the following build failure on windows: https://lab.llvm.org/buildbot/#/builders/141/builds/1083 This started happening following 2914a4b88837, and it seems to be caused by some special `#include` ordering for the lldb-python header on Windows. Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
index 88c1bb7..f5fb605 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
@@ -48,12 +48,17 @@
#ifndef LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONDATAOBJECTS_H
#define LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONDATAOBJECTS_H
-#include "lldb/Host/Config.h"
-
#if LLDB_ENABLE_PYTHON
+// clang-format off
// LLDB Python header must be included first
#include "lldb-python.h"
+//clang-format on
+#endif
+
+#include "lldb/Host/Config.h"
+
+#if LLDB_ENABLE_PYTHON
#include "lldb/Host/File.h"
#include "lldb/Utility/StructuredData.h"