Skip to content

Commit b78e883

Browse files
committed
[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
1 parent 476e087 commit b78e883

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

clang/lib/Tooling/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ add_subdirectory(Syntax)
1313
add_subdirectory(DependencyScanning)
1414
add_subdirectory(Transformer)
1515

16-
find_package(Python3 COMPONENTS Interpreter)
17-
1816
# Replace the last lib component of the current binary directory with include
1917
string(FIND ${CMAKE_CURRENT_BINARY_DIR} "/lib/" PATH_LIB_START REVERSE)
2018
if(PATH_LIB_START EQUAL -1)

0 commit comments

Comments
 (0)