[lld] r369901 - Merging r366447:

Hans Wennborg via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 26 05:32:19 PDT 2019


Author: hans
Date: Mon Aug 26 05:32:18 2019
New Revision: 369901

URL: http://llvm.org/viewvc/llvm-project?rev=369901&view=rev
Log:
Merging r366447:
------------------------------------------------------------------------
r366447 | jdevlieghere | 2019-07-18 17:17:42 +0200 (Thu, 18 Jul 2019) | 19 lines

[CMake] Don't set Python_ADDITIONAL_VERSIONS

Until recently, Python_ADDITIONAL_VERSIONS was used to limit LLVM's
Python support to 2.7. Now that both LLVM and LLDB both support Python
3, there's no longer a need to put an arbitrary limit on this.

However, instead of removing the variable, r365692 expanded the list,
which has the (presumably unintentional) side-effect of expression
preference for Python 3.

Instead, as Michal proposed in the original code review, we should just
not set the list at all, and let CMake pick whatever Python interpreter
you have in your path.

This patch removes the Python_ADDITIONAL_VERSIONS variable in llvm,
clang and lld. I've also updated the docs with the default behavior and
how to force a different Python version to be used.

Differential revision: https://reviews.llvm.org/D64894
------------------------------------------------------------------------

Modified:
    lld/branches/release_90/   (props changed)
    lld/branches/release_90/CMakeLists.txt

Propchange: lld/branches/release_90/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Mon Aug 26 05:32:18 2019
@@ -1 +1 @@
-/lld/trunk:366445,366500,366504,366573,366780,366784,366836,367836-367837,368041,368078,368145,369445,369694
+/lld/trunk:366445,366447,366500,366504,366573,366780,366784,366836,367836-367837,368041,368078,368145,369445,369694

Modified: lld/branches/release_90/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/branches/release_90/CMakeLists.txt?rev=369901&r1=369900&r2=369901&view=diff
==============================================================================
--- lld/branches/release_90/CMakeLists.txt (original)
+++ lld/branches/release_90/CMakeLists.txt Mon Aug 26 05:32:18 2019
@@ -56,7 +56,6 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRE
   include(HandleLLVMOptions)
 
   if(LLVM_INCLUDE_TESTS)
-    set(Python_ADDITIONAL_VERSIONS 2.7)
     include(FindPythonInterp)
     if(NOT PYTHONINTERP_FOUND)
       message(FATAL_ERROR




More information about the llvm-commits mailing list