[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 17:22:37 PDT 2019


hhb updated this revision to Diff 220410.
hhb added a comment.

Add mark_as_advanced.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67641/new/

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)
@@ -260,6 +260,8 @@
   set(PYTHON_VERSION_MINOR      "${PYTHON_VERSION_MINOR}"       PARENT_SCOPE)
   set(PYTHON_VERSION_PATCH      "${PYTHON_VERSION_PATCH}"       PARENT_SCOPE)
 
+  mark_as_advanced(PYTHON_EXECUTABLE)
+
   message(STATUS "LLDB Found PythonExecutable: ${PYTHON_EXECUTABLE} (${PYTHON_VERSION_STRING})")
   message(STATUS "LLDB Found PythonLibs: ${PYTHON_LIBRARY} (${PYTHONLIBS_VERSION_STRING})")
   message(STATUS "LLDB Found PythonDLL: ${PYTHON_DLL}")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67641.220410.patch
Type: text/x-patch
Size: 1183 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190917/7b459e54/attachment.bin>


More information about the lldb-commits mailing list