diff options
| author | Nathan Lanza <nathan@lanza.io> | 2018-11-08 01:10:24 +0000 |
|---|---|---|
| committer | Nathan Lanza <nathan@lanza.io> | 2018-11-08 01:10:24 +0000 |
| commit | 86923b02d90b22d300c5cbe7bc5dce541d7f717c (patch) | |
| tree | 938752124d0f1c00aa336cd2a2230299ecc576f9 | |
| parent | b41b37217122aac6a2b7d56366e0afa7b636a96f (diff) | |
| download | bcm5719-llvm-86923b02d90b22d300c5cbe7bc5dce541d7f717c.tar.gz bcm5719-llvm-86923b02d90b22d300c5cbe7bc5dce541d7f717c.zip | |
Revert "Reorder FindPythonInterp so that config-ix can use PYTHON_EXECUTABLE"
This reverts commit rL346367 due to test error in compiler-rt.
llvm-svn: 346383
| -rw-r--r-- | llvm/CMakeLists.txt | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index c17b2f31ed8..4ff0e6a90e5 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -576,22 +576,6 @@ mark_as_advanced(LLVM_TARGET_TRIPLE_ENV) set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR OFF CACHE BOOL "Enable per-target runtimes directory") -# Verify that we can find a Python 2 interpreter. Python 3 is unsupported. -# FIXME: We should support systems with only Python 3, but that requires work -# on LLDB. -set(Python_ADDITIONAL_VERSIONS 2.7) -include(FindPythonInterp) -if( NOT PYTHONINTERP_FOUND ) - message(FATAL_ERROR -"Unable to find Python interpreter, required for builds and testing. - -Please install Python or specify the PYTHON_EXECUTABLE CMake variable.") -endif() - -if( ${PYTHON_VERSION_STRING} VERSION_LESS 2.7 ) - message(FATAL_ERROR "Python 2.7 or newer is required") -endif() - # All options referred to from HandleLLVMOptions have to be specified # BEFORE this include, otherwise options will not be correctly set on # first cmake run @@ -611,6 +595,22 @@ message(STATUS "LLVM default target triple: ${LLVM_DEFAULT_TARGET_TRIPLE}") include(HandleLLVMOptions) +# Verify that we can find a Python 2 interpreter. Python 3 is unsupported. +# FIXME: We should support systems with only Python 3, but that requires work +# on LLDB. +set(Python_ADDITIONAL_VERSIONS 2.7) +include(FindPythonInterp) +if( NOT PYTHONINTERP_FOUND ) + message(FATAL_ERROR +"Unable to find Python interpreter, required for builds and testing. + +Please install Python or specify the PYTHON_EXECUTABLE CMake variable.") +endif() + +if( ${PYTHON_VERSION_STRING} VERSION_LESS 2.7 ) + message(FATAL_ERROR "Python 2.7 or newer is required") +endif() + ###### # LLVMBuild Integration # |

