Skip to content
  • Jonas Devlieghere's avatar
    [CMake] Don't set Python_ADDITIONAL_VERSIONS · a5359b1b
    Jonas Devlieghere authored
    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
    
    llvm-svn: 366447
    a5359b1b
Loading