[debuginfo-tests] ba8163e - [debuginfo-tests] Update Python CMake variable
Jonas Devlieghere via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 29 09:51:41 PDT 2020
Author: Jonas Devlieghere
Date: 2020-04-29T09:51:32-07:00
New Revision: ba8163e6290815a1deb9983772e70418d6915ac8
URL: https://github.com/llvm/llvm-project/commit/ba8163e6290815a1deb9983772e70418d6915ac8
DIFF: https://github.com/llvm/llvm-project/commit/ba8163e6290815a1deb9983772e70418d6915ac8.diff
LOG: [debuginfo-tests] Update Python CMake variable
Added:
Modified:
debuginfo-tests/CMakeLists.txt
Removed:
################################################################################
diff --git a/debuginfo-tests/CMakeLists.txt b/debuginfo-tests/CMakeLists.txt
index 9f488e92faf4..745e2384f363 100644
--- a/debuginfo-tests/CMakeLists.txt
+++ b/debuginfo-tests/CMakeLists.txt
@@ -24,21 +24,20 @@ if (WIN32)
set(DEBUGINFO_TEST_DEPS ${DEBUGINFO_TEST_DEPS} lld)
endif()
-if (NOT DEFINED PYTHON_EXECUTABLE)
- message(FATAL_ERROR "Cannot run debuginfo-tests without python")
-elseif(PYTHON_VERSION_MAJOR LESS 3)
+if (NOT DEFINED Python3_EXECUTABLE)
message(FATAL_ERROR "Cannot run debuginfo-tests without python 3")
-else()
- configure_lit_site_cfg(
- ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
- ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
- MAIN_CONFIG
- ${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
- )
-
- add_lit_testsuite(check-debuginfo "Running debug info integration tests"
- ${CMAKE_CURRENT_BINARY_DIR}
- DEPENDS ${DEBUGINFO_TEST_DEPS}
- )
- set_target_properties(check-debuginfo PROPERTIES FOLDER "Debug info tests")
endif()
+
+configure_lit_site_cfg(
+ ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
+ ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
+ MAIN_CONFIG
+ ${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
+ )
+
+add_lit_testsuite(check-debuginfo "Running debug info integration tests"
+ ${CMAKE_CURRENT_BINARY_DIR}
+ DEPENDS ${DEBUGINFO_TEST_DEPS}
+ )
+
+set_target_properties(check-debuginfo PROPERTIES FOLDER "Debug info tests")
More information about the llvm-commits
mailing list