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

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 10 12:32:13 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL365692: Add support for building with Python 3 (authored by nico, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D64443?vs=208799&id=209045#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64443/new/

https://reviews.llvm.org/D64443

Files:
  llvm/trunk/CMakeLists.txt


Index: llvm/trunk/CMakeLists.txt
===================================================================
--- llvm/trunk/CMakeLists.txt
+++ llvm/trunk/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.7 3.6 3.5 2.7)
 include(FindPythonInterp)
 if( NOT PYTHONINTERP_FOUND )
   message(FATAL_ERROR


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64443.209045.patch
Type: text/x-patch
Size: 583 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190710/805ed399/attachment.bin>


More information about the llvm-commits mailing list