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

Kamil Rytarowski via lldb-commits lldb-commits at lists.llvm.org
Sat Apr 30 17:17:43 PDT 2016


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 --------------
A non-text attachment was scrubbed...
Name: D19772.55730.patch
Type: text/x-patch
Size: 362 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160501/223bb9a9/attachment-0001.bin>


More information about the lldb-commits mailing list