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() _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits