[Lldb-commits] [lldb] d32484f - [lldb][CMake] Fix build for the case of custom libedit installation

Tatyana Krasnukha via lldb-commits lldb-commits at lists.llvm.org
Mon Dec 9 09:25:15 PST 2019


Author: Tatyana Krasnukha
Date: 2019-12-09T20:23:05+03:00
New Revision: d32484f40cbe1249643f024e3a10c4e3c50ff837

URL: https://github.com/llvm/llvm-project/commit/d32484f40cbe1249643f024e3a10c4e3c50ff837
DIFF: https://github.com/llvm/llvm-project/commit/d32484f40cbe1249643f024e3a10c4e3c50ff837.diff

LOG: [lldb][CMake] Fix build for the case of custom libedit installation

Added: 
    

Modified: 
    lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt b/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt
index 6febb0385781..5be6934c1915 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt
@@ -3,6 +3,10 @@ if(NOT LLDB_PYTHON_RELATIVE_PATH)
 endif()
 add_definitions(-DLLDB_PYTHON_RELATIVE_LIBDIR="${LLDB_PYTHON_RELATIVE_PATH}")
 
+if (NOT LLDB_DISABLE_LIBEDIT)
+  list(APPEND LLDB_LIBEDIT_LIBS ${libedit_LIBRARIES})
+endif()
+
 add_lldb_library(lldbPluginScriptInterpreterPython PLUGIN
   PythonDataObjects.cpp
   PythonReadline.cpp
@@ -16,7 +20,14 @@ add_lldb_library(lldbPluginScriptInterpreterPython PLUGIN
     lldbInterpreter
     lldbTarget
     ${PYTHON_LIBRARY}
+    ${LLDB_LIBEDIT_LIBS}
 
   LINK_COMPONENTS
     Support
   )
+
+if (NOT LLDB_DISABLE_LIBEDIT)
+  target_include_directories(lldbPluginScriptInterpreterPython PUBLIC
+     ${libedit_INCLUDE_DIRS}
+  )
+endif()


        


More information about the lldb-commits mailing list