[CMake] Fix Python 3 lookup when building LLVM with tests
authorDominik Montada <dominik.montada@hightec-rt.com>
Thu, 1 Apr 2021 10:28:39 +0000 (12:28 +0200)
committerDominik Montada <dominik.montada@hightec-rt.com>
Tue, 6 Apr 2021 11:09:06 +0000 (13:09 +0200)
commitb78e883fd8b3745250220776dd8bb635edd95539
tree111f7385ad01efa8ffbe19d4d6312c2553c9f1ef
parent476e087939e4c7cda4de9fa3bc998aea62da4096
[CMake] Fix Python 3 lookup when building LLVM with tests

Remove the find_package(Python3 ...) call from Tooling/CMakeLists.txt as
it would override the python 3 version determined in llvm/CMakeLists.txt.
This call did not respect the LLVM_MINIMUM_PYTHON_VERSION.

This fixes the check-all target when building LLVM on a system where the
default python version is not the minimum required version for running tests.

Reviewed By: serge-sans-paille

Differential Revision: https://reviews.llvm.org/D99715
clang/lib/Tooling/CMakeLists.txt