[debuginfo-tests] f829ba6 - Ensure that CMake tries to find Python3 before processing
Christopher Tetreault via llvm-commits
llvm-commits at lists.llvm.org
Wed May 13 13:59:41 PDT 2020
Author: Christopher Tetreault
Date: 2020-05-13T13:56:48-07:00
New Revision: f829ba60dadb71340318d525708e33b08ad61f8b
URL: https://github.com/llvm/llvm-project/commit/f829ba60dadb71340318d525708e33b08ad61f8b
DIFF: https://github.com/llvm/llvm-project/commit/f829ba60dadb71340318d525708e33b08ad61f8b.diff
LOG: Ensure that CMake tries to find Python3 before processing
Summary:
It is possible that CMake tries to process debuginfo-tests before any
attempt to find Python3. Ensure that CMake attempts to find it before
complaining that it doesn't exist.
Reviewers: zturner, rnk, jmorse, chandlerc
Reviewed By: rnk
Subscribers: mgorny, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D79795
Added:
Modified:
debuginfo-tests/CMakeLists.txt
Removed:
################################################################################
diff --git a/debuginfo-tests/CMakeLists.txt b/debuginfo-tests/CMakeLists.txt
index 745e2384f363..addf13d50f49 100644
--- a/debuginfo-tests/CMakeLists.txt
+++ b/debuginfo-tests/CMakeLists.txt
@@ -2,6 +2,8 @@
# various types of debug info, and then run those programs under a debugger
# such as GDB or LLDB to verify the results.
+find_package(Python3 COMPONENTS Interpreter)
+
add_llvm_executable(check-gdb-llvm-support
llvm-prettyprinters/gdb/llvm-support.cpp
)
More information about the llvm-commits
mailing list