[Lldb-commits] [PATCH] D75275: [lldb/CMake] Use PYTHON_HOME as a hint to find Python 3.

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 27 11:35:18 PST 2020


JDevlieghere created this revision.
Herald added subscribers: lldb-commits, mgorny.
Herald added a project: LLDB.
JDevlieghere added reviewers: amccarth, stella.stamenova.
amccarth accepted this revision.
amccarth added a comment.
This revision is now accepted and ready to land.

Thanks for helping figure this out!


http://lists.llvm.org/pipermail/lldb-dev/2020-February/015998.html


Repository:
  rLLDB LLDB

https://reviews.llvm.org/D75275

Files:
  lldb/cmake/modules/FindPythonInterpAndLibs.cmake


Index: lldb/cmake/modules/FindPythonInterpAndLibs.cmake
===================================================================
--- lldb/cmake/modules/FindPythonInterpAndLibs.cmake
+++ lldb/cmake/modules/FindPythonInterpAndLibs.cmake
@@ -10,6 +10,8 @@
   find_package(SWIG 2.0)
   if (SWIG_FOUND)
     if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
+      # Use PYTHON_HOME as a hint to find Python 3.
+      set(Python3_ROOT_DIR PYTHON_HOME)
       find_package(Python3 COMPONENTS Interpreter Development)
       if (Python3_FOUND AND Python3_Interpreter_FOUND)
         set(PYTHON_LIBRARIES ${Python3_LIBRARIES})


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75275.247038.patch
Type: text/x-patch
Size: 611 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200227/da35e2cc/attachment.bin>


More information about the lldb-commits mailing list