[llvm] r184732 - Look for Python 2 before Python 3 in CMakeLists.txt

Reid Kleckner reid at kleckner.net
Mon Jun 24 06:21:16 PDT 2013


Author: rnk
Date: Mon Jun 24 08:21:16 2013
New Revision: 184732

URL: http://llvm.org/viewvc/llvm-project?rev=184732&view=rev
Log:
Look for Python 2 before Python 3 in CMakeLists.txt

All of LLVM's Python scripts only support Python 2 for widely understood
reasons.

Patch by Yonggang Luo.

Modified:
    llvm/trunk/CMakeLists.txt

Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=184732&r1=184731&r2=184732&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Mon Jun 24 08:21:16 2013
@@ -250,7 +250,8 @@ set(TARGET_TRIPLE "${LLVM_DEFAULT_TARGET
 
 include(HandleLLVMOptions)
 
-# Verify that we can find a Python interpreter,
+# Verify that we can find a Python 2 interpreter.  Python 3 is unsupported.
+set(Python_ADDITIONAL_VERSIONS 2.7 2.6 2.5 2.4)
 include(FindPythonInterp)
 if( NOT PYTHONINTERP_FOUND )
   message(FATAL_ERROR





More information about the llvm-commits mailing list