OSDN Git Service

Add support for building with Python 3
authorNico Weber <nicolasweber@gmx.de>
Wed, 10 Jul 2019 19:31:25 +0000 (19:31 +0000)
committerNico Weber <nicolasweber@gmx.de>
Wed, 10 Jul 2019 19:31:25 +0000 (19:31 +0000)
LLDB supports Python 3 now.

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

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365692 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt

index 1b5a6b9..acebd3f 100644 (file)
@@ -641,10 +641,8 @@ option(LLVM_ENABLE_PLUGINS "Enable plugin support" ${LLVM_ENABLE_PLUGINS_default
 
 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