diff options
author | Christopher Tetreault <ctetreau@quicinc.com> | 2021-03-15 09:33:31 -0700 |
---|---|---|
committer | Christopher Tetreault <ctetreau@quicinc.com> | 2021-03-15 09:50:39 -0700 |
commit | 39970764af39415ad62136ff75b0f89577c18037 (patch) | |
tree | d0525fd457ee519bbfcd32829196e99a958b2b91 /mlir/CMakeLists.txt | |
parent | 3dc5b533e093ee5df92b3c11ee2150869e83b8a6 (diff) | |
download | llvm-39970764af39415ad62136ff75b0f89577c18037.zip llvm-39970764af39415ad62136ff75b0f89577c18037.tar.gz llvm-39970764af39415ad62136ff75b0f89577c18037.tar.bz2 |
[CMake] Require python 3.6 if enabling LLVM test targets
The lit test suite uses python 3.6 features. Rather than a strange
python syntax error upon running the lit tests, we will require the
correct version in CMake.
Reviewed By: serge-sans-paille, yln
Differential Revision: https://reviews.llvm.org/D95635
Diffstat (limited to 'mlir/CMakeLists.txt')
-rw-r--r-- | mlir/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mlir/CMakeLists.txt b/mlir/CMakeLists.txt index 7385e6b..79ef551 100644 --- a/mlir/CMakeLists.txt +++ b/mlir/CMakeLists.txt @@ -106,7 +106,8 @@ set(MLIR_PYTHON_BINDINGS_VERSION_LOCKED 1 CACHE BOOL if(MLIR_BINDINGS_PYTHON_ENABLED) include(MLIRDetectPythonEnv) - find_package(Python3 COMPONENTS Interpreter Development NumPy REQUIRED) + find_package(Python3 ${LLVM_MINIMUM_PYTHON_VERSION} + COMPONENTS Interpreter Development NumPy REQUIRED) message(STATUS "Found python include dirs: ${Python3_INCLUDE_DIRS}") message(STATUS "Found python libraries: ${Python3_LIBRARIES}") message(STATUS "Found numpy v${Python3_NumPy_VERSION}: ${Python3_NumPy_INCLUDE_DIRS}") |