[PATCH] D64894: [CMake] Don't set Python_ADDITIONAL_VERSIONS
Jonas Devlieghere via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 17 16:05:57 PDT 2019
JDevlieghere updated this revision to Diff 210451.
JDevlieghere added a comment.
Update the docs with information on the default behavior with regards to Python and how to overwrite it.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64894/new/
https://reviews.llvm.org/D64894
Files:
llvm/CMakeLists.txt
llvm/docs/GettingStarted.rst
Index: llvm/docs/GettingStarted.rst
===================================================================
--- llvm/docs/GettingStarted.rst
+++ llvm/docs/GettingStarted.rst
@@ -598,6 +598,11 @@
| CMAKE_INSTALL_PREFIX | Specifies the install directory to target when |
| | running the install action of the build files. |
+-------------------------+----------------------------------------------------+
+| PYTHON_EXECUTABLE | Forces CMake to use a specific Python version by |
+| | passing a path to a Python interpreter. By default |
+| | the Python version of the interpreter in your PATH |
+| | is used. |
++-------------------------+----------------------------------------------------+
| LLVM_TARGETS_TO_BUILD | A semicolon delimited list controlling which |
| | targets will be built and linked into llvm. |
| | The default list is defined as |
Index: llvm/CMakeLists.txt
===================================================================
--- llvm/CMakeLists.txt
+++ llvm/CMakeLists.txt
@@ -641,8 +641,6 @@
include(HandleLLVMOptions)
-# 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: D64894.210451.patch
Type: text/x-patch
Size: 1452 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190717/3753e993/attachment.bin>
More information about the llvm-commits
mailing list