[llvm-bugs] [Bug 43637] New: lldb CMake fails when -DLLDB_DISABLE_PYTHON=ON and epydoc is present
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Oct 10 07:39:12 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=43637
Bug ID: 43637
Summary: lldb CMake fails when -DLLDB_DISABLE_PYTHON=ON and
epydoc is present
Product: Build scripts
Version: 9.0
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: cmake
Assignee: unassignedbugs at nondot.org
Reporter: ofv at wanadoo.es
CC: llvm-bugs at lists.llvm.org
Created attachment 22650
--> https://bugs.llvm.org/attachment.cgi?id=22650&action=edit
Suggested fix
On tools/lldb/docs/CMakeLists.txt we have
find_program(EPYDOC_EXECUTABLE NAMES epydoc epydoc.py)
if(EPYDOC_EXECUTABLE)
...
get_target_property(lldb_scripts_dir swig_wrapper BINARY_DIR)
so the get_target command is executed whenever epydoc is present.
But the target swig_wrapper is defined in lldb/scripts/CMakeFiles.txt, which is
included from lldb/CMakeLists.txt:
if (NOT LLDB_DISABLE_PYTHON)
add_subdirectory(scripts)
endif ()
hence swig_wrapper is defined only when LLDB_DISABLE_PYTHON is OFF.
Attached patch with suggested fix.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191010/30fa731e/attachment.html>
More information about the llvm-bugs
mailing list