diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-12-12 09:13:04 -0800 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-12-12 09:13:31 -0800 |
| commit | a4304f96d6baba92baa9db1eef0ed647f76306f6 (patch) | |
| tree | 887ffdd1ef5443b27f39555bce663c38f1b32381 /lldb/source/Core | |
| parent | 23bee0b0cf7a1af084ea06f2b7dfde1767837084 (diff) | |
| download | bcm5719-llvm-a4304f96d6baba92baa9db1eef0ed647f76306f6.tar.gz bcm5719-llvm-a4304f96d6baba92baa9db1eef0ed647f76306f6.zip | |
[lldb/CMake] Rename LLDB_DISABLE_CURSES to LLDB_ENABLE_CURSES
This matches the naming scheme used by LLVM.
Differential revision: https://reviews.llvm.org/D71377
Diffstat (limited to 'lldb/source/Core')
| -rw-r--r-- | lldb/source/Core/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | lldb/source/Core/IOHandlerCursesGUI.cpp | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/Core/CMakeLists.txt b/lldb/source/Core/CMakeLists.txt index 0c7f3e376df..25ce5183571 100644 --- a/lldb/source/Core/CMakeLists.txt +++ b/lldb/source/Core/CMakeLists.txt @@ -9,7 +9,7 @@ lldb_tablegen(CorePropertiesEnum.inc -gen-lldb-property-enum-defs set(LLDB_CURSES_LIBS) set(LLDB_LIBEDIT_LIBS) -if (NOT LLDB_DISABLE_CURSES) +if (LLDB_ENABLE_CURSES) list(APPEND LLDB_CURSES_LIBS ${CURSES_LIBRARIES} ${CURSES_PANEL_LIBRARY}) if(LLVM_ENABLE_TERMINFO AND HAVE_TERMINFO) list(APPEND LLDB_CURSES_LIBS ${TERMINFO_LIBS}) @@ -102,6 +102,6 @@ if (NOT LLDB_DISABLE_LIBEDIT) target_include_directories(lldbCore PRIVATE ${libedit_INCLUDE_DIRS}) endif() -if (NOT LLDB_DISABLE_CURSES) +if (LLDB_ENABLE_CURSES) target_include_directories(lldbCore PRIVATE ${CURSES_INCLUDE_DIR}) endif() diff --git a/lldb/source/Core/IOHandlerCursesGUI.cpp b/lldb/source/Core/IOHandlerCursesGUI.cpp index 23c185ada1a..1661b465efa 100644 --- a/lldb/source/Core/IOHandlerCursesGUI.cpp +++ b/lldb/source/Core/IOHandlerCursesGUI.cpp @@ -9,7 +9,7 @@ #include "lldb/Core/IOHandlerCursesGUI.h" #include "lldb/Host/Config.h" -#ifndef LLDB_DISABLE_CURSES +#if LLDB_ENABLE_CURSES #include <curses.h> #include <panel.h> #endif @@ -31,7 +31,7 @@ #include "lldb/Interpreter/CommandCompletions.h" #include "lldb/Interpreter/CommandInterpreter.h" -#ifndef LLDB_DISABLE_CURSES +#if LLDB_ENABLE_CURSES #include "lldb/Breakpoint/BreakpointLocation.h" #include "lldb/Core/Module.h" #include "lldb/Core/ValueObject.h" @@ -74,7 +74,7 @@ using llvm::Optional; using llvm::StringRef; // we may want curses to be disabled for some builds for instance, windows -#ifndef LLDB_DISABLE_CURSES +#if LLDB_ENABLE_CURSES #define KEY_RETURN 10 #define KEY_ESCAPE 27 @@ -4064,4 +4064,4 @@ bool IOHandlerCursesGUI::Interrupt() { return false; } void IOHandlerCursesGUI::GotEOF() {} -#endif // LLDB_DISABLE_CURSES +#endif // LLDB_ENABLE_CURSES |

