[Lldb-commits] [PATCH] D19772: Detect Python's executable on NetBSD

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Sat Apr 30 17:26:42 PDT 2016


Don't we already call FindPythonInterp from somewhere else in the LLDB's
CMake files?

On Sat, Apr 30, 2016 at 5:17 PM Kamil Rytarowski <n54 at gmx.com> wrote:

> krytarowski created this revision.
> krytarowski added reviewers: emaste, labath, zturner.
> krytarowski added subscribers: lldb-commits, joerg.
> krytarowski set the repository for this revision to rL LLVM.
>
> NetBSD ships with pkgsrc that installs versioned Python executables with
> suffix, like: python2.7 or python3.5.
>
> CMake needs more help to detect appropriate name, so require where needed
> `FindPythonInterp`.
>
> This diff addresses the following failure:
>
> ```
> CMake Error at scripts/cmake_install.cmake:31 (file):
>   file INSTALL cannot find
>   "/tmp/pkgsrc-tmp/wip/lldb-git/work/build/lib/python.".
> Call Stack (most recent call first):
>   cmake_install.cmake:37 (include)
>
>
>
> *** Error code 1
> ```
>
> Repository:
>   rL LLVM
>
> http://reviews.llvm.org/D19772
>
> Files:
>   scripts/CMakeLists.txt
>
> Index: scripts/CMakeLists.txt
> ===================================================================
> --- scripts/CMakeLists.txt
> +++ scripts/CMakeLists.txt
> @@ -9,6 +9,8 @@
>    ${LLDB_SOURCE_DIR}/include/lldb/lldb-versioning.h
>  )
>
> +include(FindPythonInterp)
> +
>  find_package(SWIG REQUIRED)
>  add_custom_command(
>    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/LLDBWrapPython.cpp
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160501/f3ebb289/attachment.html>


More information about the lldb-commits mailing list