Skip to content

Commit b449d19

Browse files
committed
build: use find_package(Python3) rather than PYTHON_HOME
The behaviour of `PYTHON_HOME` can be emulated by setting `Python3_EXECUTABLE` to the absolute path instead of the custom variable now that we can find the python interpreter.
1 parent da0fe5d commit b449d19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lldb/cmake/modules/LLDBConfig.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ if (LLDB_ENABLE_PYTHON)
148148
include_directories(${Python3_INCLUDE_DIRS})
149149

150150
if (NOT LLDB_RELOCATABLE_PYTHON)
151+
get_filename_component(PYTHON_HOME "${Python3_EXECUTABLE}" DIRECTORY)
151152
file(TO_CMAKE_PATH "${PYTHON_HOME}" LLDB_PYTHON_HOME)
152153
endif()
153154
else()

0 commit comments

Comments
 (0)