[PATCH] D64443: Add support for building with Python 3

Christian Biesinger via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 9 13:06:08 PDT 2019


cbiesinger created this revision.
cbiesinger added a reviewer: chandlerc.
Herald added subscribers: llvm-commits, mgorny.
Herald added a project: LLVM.

LLDB supports Python 3 now.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D64443

Files:
  llvm/CMakeLists.txt


Index: llvm/CMakeLists.txt
===================================================================
--- llvm/CMakeLists.txt
+++ llvm/CMakeLists.txt
@@ -641,10 +641,8 @@
 
 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.6 2.7)
 include(FindPythonInterp)
 if( NOT PYTHONINTERP_FOUND )
   message(FATAL_ERROR


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64443.208790.patch
Type: text/x-patch
Size: 557 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190709/bc80163b/attachment.bin>


More information about the llvm-commits mailing list