diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-12-13 10:37:33 -0800 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-12-13 13:41:11 -0800 |
| commit | 4e26cf2cfb2b140a33ec236153cb2f23b5c44127 (patch) | |
| tree | 466e768fef375dd038474f91abc4eb255dca93ec /lldb/source/API | |
| parent | 9cb7a1be2a430a50fb5644b3f48d4a1544034fb9 (diff) | |
| download | bcm5719-llvm-4e26cf2cfb2b140a33ec236153cb2f23b5c44127.tar.gz bcm5719-llvm-4e26cf2cfb2b140a33ec236153cb2f23b5c44127.zip | |
[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
Diffstat (limited to 'lldb/source/API')
| -rw-r--r-- | lldb/source/API/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | lldb/source/API/SBHostOS.cpp | 4 | ||||
| -rw-r--r-- | lldb/source/API/SystemInitializerFull.cpp | 8 |
3 files changed, 8 insertions, 8 deletions
diff --git a/lldb/source/API/CMakeLists.txt b/lldb/source/API/CMakeLists.txt index 934bbf2ec1b..1a99a26dfc4 100644 --- a/lldb/source/API/CMakeLists.txt +++ b/lldb/source/API/CMakeLists.txt @@ -4,7 +4,7 @@ endif() get_property(LLDB_ALL_PLUGINS GLOBAL PROPERTY LLDB_PLUGINS) -if(NOT LLDB_DISABLE_PYTHON) +if(LLDB_ENABLE_PYTHON) get_target_property(lldb_scripts_dir swig_wrapper BINARY_DIR) set(lldb_python_wrapper ${lldb_scripts_dir}/LLDBWrapPython.cpp) endif() @@ -154,7 +154,7 @@ endif() if ( CMAKE_SYSTEM_NAME MATCHES "Windows" ) # Only MSVC has the ABI compatibility problem and avoids using FindPythonLibs, # so only it needs to explicitly link against ${PYTHON_LIBRARY} - if (MSVC AND NOT LLDB_DISABLE_PYTHON) + if (MSVC AND LLDB_ENABLE_PYTHON) target_link_libraries(liblldb PRIVATE ${PYTHON_LIBRARY}) endif() else() diff --git a/lldb/source/API/SBHostOS.cpp b/lldb/source/API/SBHostOS.cpp index 2a1d17a2413..6ac8717237e 100644 --- a/lldb/source/API/SBHostOS.cpp +++ b/lldb/source/API/SBHostOS.cpp @@ -19,7 +19,7 @@ #include "lldb/Utility/FileSpec.h" #include "Plugins/ExpressionParser/Clang/ClangHost.h" -#ifndef LLDB_DISABLE_PYTHON +#if LLDB_ENABLE_PYTHON #include "Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h" #endif @@ -61,7 +61,7 @@ SBFileSpec SBHostOS::GetLLDBPath(lldb::PathType path_type) { fspec = HostInfo::GetHeaderDir(); break; case ePathTypePythonDir: -#ifndef LLDB_DISABLE_PYTHON +#if LLDB_ENABLE_PYTHON fspec = ScriptInterpreterPython::GetPythonDir(); #endif break; diff --git a/lldb/source/API/SystemInitializerFull.cpp b/lldb/source/API/SystemInitializerFull.cpp index ffb302d7f41..35a02ec2951 100644 --- a/lldb/source/API/SystemInitializerFull.cpp +++ b/lldb/source/API/SystemInitializerFull.cpp @@ -10,7 +10,7 @@ #include "lldb/API/SBCommandInterpreter.h" #include "lldb/Host/Config.h" -#if !defined(LLDB_DISABLE_PYTHON) +#if LLDB_ENABLE_PYTHON #include "Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h" #endif @@ -179,11 +179,11 @@ llvm::Error SystemInitializerFull::Initialize() { ScriptInterpreterNone::Initialize(); -#ifndef LLDB_DISABLE_PYTHON +#if LLDB_ENABLE_PYTHON OperatingSystemPython::Initialize(); #endif -#if !defined(LLDB_DISABLE_PYTHON) +#if LLDB_ENABLE_PYTHON ScriptInterpreterPython::Initialize(); #endif @@ -375,7 +375,7 @@ void SystemInitializerFull::Terminate() { DynamicLoaderStatic::Terminate(); DynamicLoaderWindowsDYLD::Terminate(); -#ifndef LLDB_DISABLE_PYTHON +#if LLDB_ENABLE_PYTHON OperatingSystemPython::Terminate(); #endif |

