Ensure that CMake tries to find Python3 before processing
authorChristopher Tetreault <ctetreau@quicinc.com>
Wed, 13 May 2020 20:31:43 +0000 (13:31 -0700)
committerChristopher Tetreault <ctetreau@quicinc.com>
Wed, 13 May 2020 20:56:48 +0000 (13:56 -0700)
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

debuginfo-tests/CMakeLists.txt

index 745e238..addf13d 100644 (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
 )