[lldb/CMake] Rename LLDB_DISABLE_PYTHON to LLDB_ENABLE_PYTHON

This matches the naming scheme used by LLVM and all the other optional
dependencies in LLDB.

Differential revision: https://reviews.llvm.org/D71482
This commit is contained in:
Jonas Devlieghere
2019-12-13 10:37:33 -08:00
parent 9cb7a1be2a
commit 4e26cf2cfb
29 changed files with 87 additions and 96 deletions

View File

@@ -14,9 +14,7 @@
// 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
#if LLDB_ENABLE_PYTHON
#include "llvm/Support/Compiler.h"
#if defined(_WIN32)
// If anyone #includes Host/PosixApi.h later, it will try to typedef pid_t. We
@@ -42,6 +40,6 @@
// Include python for non windows machines
#include <Python.h>
#endif // LLDB_DISABLE_PYTHON
#endif
#endif // LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_LLDB_PYTHON_H