[PATCH] D79795: Ensure that CMake tries to find Python3 before processing

Christopher Tetreault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 12 11:16:55 PDT 2020


ctetreau created this revision.
Herald added subscribers: llvm-commits, mgorny.
Herald added a project: LLVM.
ctetreau added reviewers: zturner, rnk, jmorse, chandlerc.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79795

Files:
  debuginfo-tests/CMakeLists.txt


Index: debuginfo-tests/CMakeLists.txt
===================================================================
--- debuginfo-tests/CMakeLists.txt
+++ 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
 )


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79795.263474.patch
Type: text/x-patch
Size: 462 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200512/5e19d0b1/attachment-0001.bin>


More information about the llvm-commits mailing list