[llvm] r365692 - Add support for building with Python 3

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 10 12:31:26 PDT 2019


Author: nico
Date: Wed Jul 10 12:31:25 2019
New Revision: 365692

URL: http://llvm.org/viewvc/llvm-project?rev=365692&view=rev
Log:
Add support for building with Python 3

LLDB supports Python 3 now.

Differential Revision: https://reviews.llvm.org/D64443

Patch from Christian Biesinger <cbiesinger at google.com>!

Modified:
    llvm/trunk/CMakeLists.txt

Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=365692&r1=365691&r2=365692&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Wed Jul 10 12:31:25 2019
@@ -641,10 +641,8 @@ option(LLVM_ENABLE_PLUGINS "Enable plugi
 
 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)
+# We support both Python 2 and 3.
+set(Python_ADDITIONAL_VERSIONS 3.7 3.6 3.5 2.7)
 include(FindPythonInterp)
 if( NOT PYTHONINTERP_FOUND )
   message(FATAL_ERROR




More information about the llvm-commits mailing list