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
This commit is contained in:
Christopher Tetreault 2020-05-13 13:31:43 -07:00
parent ee33ee68fe
commit f829ba60da
1 changed files with 2 additions and 0 deletions

View File

@ -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
)