X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=CMakeLists.txt;h=3177564b61962a5721a5e01a78639f85131f8e61;hb=56471c4aecd3c0944e3c61e0670a4e2c7d455e5c;hp=ab626431e09f5f6d37e2e9e373aeba7ccf410278;hpb=7c150bae217098a455dd02b7b4ea7c4ef8c2c138;p=oota-llvm.git diff --git a/CMakeLists.txt b/CMakeLists.txt index ab626431e09..3177564b619 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,7 +47,7 @@ set(CMAKE_MODULE_PATH ) set(LLVM_VERSION_MAJOR 3) -set(LLVM_VERSION_MINOR 6) +set(LLVM_VERSION_MINOR 7) set(LLVM_VERSION_PATCH 0) if (NOT PACKAGE_VERSION) @@ -344,7 +344,9 @@ set(TARGET_TRIPLE "${LLVM_DEFAULT_TARGET_TRIPLE}") include(HandleLLVMOptions) # Verify that we can find a Python 2 interpreter. Python 3 is unsupported. -set(Python_ADDITIONAL_VERSIONS 2.7 2.6 2.5) +# 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 @@ -353,6 +355,10 @@ if( NOT PYTHONINTERP_FOUND ) 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 #