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 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 |