summaryrefslogtreecommitdiffstats
path: root/lldb/source/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/CMakeLists.txt')
-rw-r--r--lldb/source/CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/source/CMakeLists.txt b/lldb/source/CMakeLists.txt
index 5e2ac8b9cd5..d551ebbe688 100644
--- a/lldb/source/CMakeLists.txt
+++ b/lldb/source/CMakeLists.txt
@@ -1,5 +1,16 @@
include_directories(.)
+if (__ANDROID_NDK__ OR (CMAKE_SYSTEM_NAME MATCHES "Windows"))
+ set(LLDB_DEFAULT_DISABLE_LIBEDIT 1)
+else()
+ set(LLDB_DEFAULT_DISABLE_LIBEDIT 0)
+endif ()
+
+set(LLDB_DISABLE_LIBEDIT ${LLDB_DEFAULT_DISABLE_LIBEDIT} CACHE BOOL "Disables the use of editline.")
+if (LLDB_DISABLE_LIBEDIT)
+ add_definitions( -DLLDB_DISABLE_LIBEDIT )
+endif()
+
if ( CMAKE_SYSTEM_NAME MATCHES "Linux" )
include_directories(
Plugins/Process/Linux
OpenPOWER on IntegriCloud