[Openmp-commits] [PATCH] D139855: [RFC][OpenMP] Update to Python3 for lit test
Shilei Tian via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Mon Dec 12 09:33:22 PST 2022
tianshilei1992 updated this revision to Diff 482172.
tianshilei1992 added a comment.
remove development as we only need interpreter
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139855/new/
https://reviews.llvm.org/D139855
Files:
openmp/cmake/OpenMPTesting.cmake
Index: openmp/cmake/OpenMPTesting.cmake
===================================================================
--- openmp/cmake/OpenMPTesting.cmake
+++ openmp/cmake/OpenMPTesting.cmake
@@ -3,9 +3,9 @@
# Function to find required dependencies for testing.
function(find_standalone_test_dependencies)
- include(FindPythonInterp)
+ find_package (Python3 COMPONENTS Interpreter)
- if (NOT PYTHONINTERP_FOUND)
+ if (NOT Python3_Interpreter_FOUND)
message(STATUS "Could not find Python.")
message(WARNING "The check targets will not be available!")
set(ENABLE_CHECK_TARGETS FALSE PARENT_SCOPE)
@@ -207,7 +207,7 @@
if (${OPENMP_STANDALONE_BUILD})
set(LIT_ARGS ${OPENMP_LIT_ARGS} ${ARG_ARGS})
add_custom_target(${target}
- COMMAND ${PYTHON_EXECUTABLE} ${OPENMP_LLVM_LIT_EXECUTABLE} ${LIT_ARGS} ${ARG_UNPARSED_ARGUMENTS}
+ COMMAND ${Python3_EXECUTABLE} ${OPENMP_LLVM_LIT_EXECUTABLE} ${LIT_ARGS} ${ARG_UNPARSED_ARGUMENTS}
COMMENT ${comment}
DEPENDS ${ARG_DEPENDS}
USES_TERMINAL
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139855.482172.patch
Type: text/x-patch
Size: 1034 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20221212/8899921e/attachment.bin>
More information about the Openmp-commits
mailing list