From bcadb5a3d1b17a581c4ac991f129eb8441a81c48 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Thu, 21 Jun 2018 14:09:15 +0000 Subject: ScriptInterpreterPython cleanup Instead of #ifdef-ing the contents of all files in the plugin for all non-python builds, just disable the plugin at the cmake level. Also, remove spurious extra linking of the Python plugin in liblldb. This plugin is already included as a part of LLDB_ALL_PLUGINS variable. llvm-svn: 335236 --- lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h') diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h b/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h index 81bcb8aa73b..c0998636fcb 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h @@ -1,5 +1,4 @@ -//===-- lldb-python.h --------------------------------------------*- C++ -//-*-===// +//===-- lldb-python.h -------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -14,9 +13,6 @@ // Python.h needs to be included before any system headers in order to avoid // redefinition of macros -#ifdef LLDB_DISABLE_PYTHON -// Python is disabled in this build -#else #include "llvm/Support/Compiler.h" #if defined(_WIN32) // If anyone #includes Host/PosixApi.h later, it will try to typedef pid_t. We @@ -36,6 +32,5 @@ // Include python for non windows machines #include -#endif // LLDB_DISABLE_PYTHON #endif // LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_LLDB_PYTHON_H -- cgit v1.2.3