diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2020-04-23 20:46:47 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2020-04-28 09:24:27 -0700 |
commit | c4c3883b00d3a6aa657a5e3e515c90c9ea1f81c6 (patch) | |
tree | 9b9acfba53c4f4e210839627dbec2652788ff9e6 /clang/bindings | |
parent | a0004358a8e7f6956b8b59998e99f4ea8ee201f3 (diff) | |
download | llvm-c4c3883b00d3a6aa657a5e3e515c90c9ea1f81c6.zip llvm-c4c3883b00d3a6aa657a5e3e515c90c9ea1f81c6.tar.gz llvm-c4c3883b00d3a6aa657a5e3e515c90c9ea1f81c6.tar.bz2 |
build: use `find_package(Python3)` if available
This is primarily motivated by the desire to move from Python2 to
Python3. `PYTHON_EXECUTABLE` is ambiguous. This explicitly identifies
the python interpreter in use. Since the LLVM build seems to be able to
completed successfully with python3, use that across the build. The old
path aliases `PYTHON_EXECUTABLE` to be treated as Python3.
Diffstat (limited to 'clang/bindings')
-rw-r--r-- | clang/bindings/python/tests/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/bindings/python/tests/CMakeLists.txt b/clang/bindings/python/tests/CMakeLists.txt index 626256a..3f58c4b 100644 --- a/clang/bindings/python/tests/CMakeLists.txt +++ b/clang/bindings/python/tests/CMakeLists.txt @@ -3,7 +3,7 @@ add_custom_target(check-clang-python COMMAND ${CMAKE_COMMAND} -E env CLANG_LIBRARY_PATH=$<TARGET_FILE_DIR:libclang> - ${PYTHON_EXECUTABLE} -m unittest discover + "${Python3_EXECUTABLE}" -m unittest discover DEPENDS libclang WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/..) |