[llvm] r224948 - [py3] Teach the CMake build to reject Python versions older than 2.7.
Chandler Carruth
chandlerc at gmail.com
Mon Dec 29 11:36:06 PST 2014
Author: chandlerc
Date: Mon Dec 29 13:36:05 2014
New Revision: 224948
URL: http://llvm.org/viewvc/llvm-project?rev=224948&view=rev
Log:
[py3] Teach the CMake build to reject Python versions older than 2.7.
Continue to require Python 2 however as recent experiments suggest
LLDB's build requires it.
Modified:
llvm/trunk/CMakeLists.txt
Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=224948&r1=224947&r2=224948&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Mon Dec 29 13:36:05 2014
@@ -344,7 +344,9 @@ set(TARGET_TRIPLE "${LLVM_DEFAULT_TARGET
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
#
More information about the llvm-commits
mailing list