[Lldb-commits] [PATCH] D67641: Cache PYTHON_EXECUTABLE for windows

Haibo Huang via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 16 16:42:42 PDT 2019


hhb created this revision.
Herald added subscribers: lldb-commits, mgorny.
Herald added a project: LLDB.
hhb added a reviewer: JDevlieghere.

This way it can be overwritten when cross compiling.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D67641

Files:
  lldb/cmake/modules/LLDBConfig.cmake


Index: lldb/cmake/modules/LLDBConfig.cmake
===================================================================
--- lldb/cmake/modules/LLDBConfig.cmake
+++ lldb/cmake/modules/LLDBConfig.cmake
@@ -250,7 +250,7 @@
   endif()
 
   # Set the same variables as FindPythonInterp and FindPythonLibs.
-  set(PYTHON_EXECUTABLE         "${PYTHON_EXECUTABLE}"          PARENT_SCOPE)
+  set(PYTHON_EXECUTABLE         "${PYTHON_EXECUTABLE}"          CACHE PATH "Path to python executable.")
   set(PYTHON_LIBRARY            "${PYTHON_LIBRARY}"             PARENT_SCOPE)
   set(PYTHON_DLL                "${PYTHON_DLL}"                 PARENT_SCOPE)
   set(PYTHON_INCLUDE_DIR        "${PYTHON_INCLUDE_DIR}"         PARENT_SCOPE)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67641.220405.patch
Type: text/x-patch
Size: 714 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190916/f7040384/attachment-0001.bin>


More information about the lldb-commits mailing list