summaryrefslogtreecommitdiffstats
path: root/lldb/cmake/modules
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-12-13 10:20:35 +0100
committerPavel Labath <pavel@labath.sk>2019-12-13 10:23:35 +0100
commitec109fb7edc627d777ead14fd289ea2f2278a4ad (patch)
tree4489d46f9f7c21b3056300e29f69394a2296c071 /lldb/cmake/modules
parent087528a331786228221d7a56a51ab97a3fcac8f1 (diff)
downloadbcm5719-llvm-ec109fb7edc627d777ead14fd289ea2f2278a4ad.tar.gz
bcm5719-llvm-ec109fb7edc627d777ead14fd289ea2f2278a4ad.zip
[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.
Diffstat (limited to 'lldb/cmake/modules')
-rw-r--r--lldb/cmake/modules/LLDBConfig.cmake13
1 files changed, 11 insertions, 2 deletions
diff --git a/lldb/cmake/modules/LLDBConfig.cmake b/lldb/cmake/modules/LLDBConfig.cmake
index 16d4d8c9c46..d2ae1ba2014 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)
OpenPOWER on IntegriCloud