[Lldb-commits] [lldb] ec109fb - [lldb/cmake] Temporarily revive LLDB_DISABLE_CURSES
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Fri Dec 13 01:23:17 PST 2019
Author: Pavel Labath
Date: 2019-12-13T10:23:35+01:00
New Revision: ec109fb7edc627d777ead14fd289ea2f2278a4ad
URL: https://github.com/llvm/llvm-project/commit/ec109fb7edc627d777ead14fd289ea2f2278a4ad
DIFF: https://github.com/llvm/llvm-project/commit/ec109fb7edc627d777ead14fd289ea2f2278a4ad.diff
LOG: [lldb/cmake] Temporarily revive LLDB_DISABLE_CURSES
At least one lldb bot still uses this cmake variable instead of
LLDB_ENABLE_CURSES. Add code to set the default value of the "enable"
variable based on the old value of the "disable" setting.
This should bring those bots back up, until we can update the master to
use the new setting.
Added:
Modified:
lldb/cmake/modules/LLDBConfig.cmake
Removed:
################################################################################
diff --git a/lldb/cmake/modules/LLDBConfig.cmake b/lldb/cmake/modules/LLDBConfig.cmake
index 16d4d8c9c460..d2ae1ba20140 100644
--- a/lldb/cmake/modules/LLDBConfig.cmake
+++ b/lldb/cmake/modules/LLDBConfig.cmake
@@ -28,6 +28,15 @@ set(default_disable_python OFF)
set(default_enable_libedit ON)
set(default_enable_curses ON)
+# Temporary support the old LLDB_DISABLE_CURSES variable
+if (DEFINED LLDB_DISABLE_CURSES)
+ if (LLDB_DISABLE_CURSES)
+ set(default_enable_curses OFF)
+ else()
+ set(default_enable_curses ON)
+ endif()
+endif()
+
if(DEFINED LLVM_ENABLE_LIBEDIT AND NOT LLVM_ENABLE_LIBEDIT)
set(default_disable_libedit ON)
endif()
@@ -44,8 +53,8 @@ elseif(IOS)
endif()
option(LLDB_DISABLE_PYTHON "Disable Python scripting integration." ${default_disable_python})
-option(LLDB_ENABLE_LIBEDIT "Disable the use of editline." ${default_enable_libedit})
-option(LLDB_ENABLE_CURSES "Disable Curses integration." ${default_enable_curses})
+option(LLDB_ENABLE_LIBEDIT "Enable the use of editline." ${default_enable_libedit})
+option(LLDB_ENABLE_CURSES "Enable Curses integration." ${default_enable_curses})
option(LLDB_RELOCATABLE_PYTHON "Use the PYTHONHOME environment variable to locate Python." OFF)
option(LLDB_USE_SYSTEM_SIX "Use six.py shipped with system and do not install a copy of it" OFF)
option(LLDB_USE_ENTITLEMENTS "When codesigning, use entitlements if available" ON)
More information about the lldb-commits
mailing list