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: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to