aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/OperatingSystem/Python
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-12-10 08:54:30 -0800
committerJonas Devlieghere <jonas@devlieghere.com>2019-12-10 11:16:52 -0800
commit59998b7b7f12c867062a4b61579511ad6c0ca144 (patch)
tree16c55c2623826dd24e5f18fbe2a4c1417c9efe2e /lldb/source/Plugins/OperatingSystem/Python
parente81268d03e73aef4f9c7bd8ece8ad02f5b017dcf (diff)
downloadllvm-59998b7b7f12c867062a4b61579511ad6c0ca144.zip
llvm-59998b7b7f12c867062a4b61579511ad6c0ca144.tar.gz
llvm-59998b7b7f12c867062a4b61579511ad6c0ca144.tar.bz2
[lldb/Host] Use Host/Config.h entries instead of a global define.
As suggested by Pavel in a code review: > Can we replace this (and maybe python too, while at it) with a > Host/Config.h entry? A global definition means that one has to > recompile everything when these change in any way, whereas in > practice only a handful of files need this.. Differential revision: https://reviews.llvm.org/D71280
Diffstat (limited to 'lldb/source/Plugins/OperatingSystem/Python')
-rw-r--r--lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp2
-rw-r--r--lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp b/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp
index 5761b39f..3ed48e1 100644
--- a/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp
+++ b/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp
@@ -6,6 +6,8 @@
//
//===----------------------------------------------------------------------===//
+#include "lldb/Host/Config.h"
+
#ifndef LLDB_DISABLE_PYTHON
#include "OperatingSystemPython.h"
diff --git a/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h b/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h
index e76227d..e38f0f8 100644
--- a/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h
+++ b/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h
@@ -9,6 +9,8 @@
#ifndef liblldb_OperatingSystemPython_h_
#define liblldb_OperatingSystemPython_h_
+#include "lldb/Host/Config.h"
+
#ifndef LLDB_DISABLE_PYTHON
#include "lldb/Target/OperatingSystem.h"