[Lldb-commits] [PATCH] D67641: Cache PYTHON_EXECUTABLE for windows
Haibo Huang via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 17 16:42:37 PDT 2019
hhb updated this revision to Diff 220584.
hhb added a comment.
Turns out I still need to change previous lines to remove PARENT_SCOPE. Otherwise local value will still be used even if a different value is set in the cache.
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,16 +250,23 @@
endif()
# Set the same variables as FindPythonInterp and FindPythonLibs.
- set(PYTHON_EXECUTABLE "${PYTHON_EXECUTABLE}" PARENT_SCOPE)
- set(PYTHON_LIBRARY "${PYTHON_LIBRARY}" PARENT_SCOPE)
- set(PYTHON_DLL "${PYTHON_DLL}" PARENT_SCOPE)
- set(PYTHON_INCLUDE_DIR "${PYTHON_INCLUDE_DIR}" PARENT_SCOPE)
+ set(PYTHON_EXECUTABLE "${PYTHON_EXECUTABLE}")
+ set(PYTHON_LIBRARY "${PYTHON_LIBRARY}")
+ set(PYTHON_DLL "${PYTHON_DLL}")
+ set(PYTHON_INCLUDE_DIR "${PYTHON_INCLUDE_DIR}")
set(PYTHONLIBS_VERSION_STRING "${PYTHONLIBS_VERSION_STRING}" PARENT_SCOPE)
set(PYTHON_VERSION_STRING "${PYTHON_VERSION_STRING}" PARENT_SCOPE)
set(PYTHON_VERSION_MAJOR "${PYTHON_VERSION_MAJOR}" PARENT_SCOPE)
set(PYTHON_VERSION_MINOR "${PYTHON_VERSION_MINOR}" PARENT_SCOPE)
set(PYTHON_VERSION_PATCH "${PYTHON_VERSION_PATCH}" PARENT_SCOPE)
+ mark_as_advanced(
+ PYTHON_EXECUTABLE
+ PYTHON_LIBRARY
+ PYTHON_DLL
+ PYTHON_INCLUDE_DIR
+ )
+
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.220584.patch
Type: text/x-patch
Size: 1585 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190917/dae8eaf6/attachment.bin>
More information about the lldb-commits
mailing list