[all-commits] [llvm/llvm-project] cd84bf: build: use `find_package(Python3)` if available

Saleem Abdulrasool via All-commits all-commits at lists.llvm.org
Mon Apr 27 18:34:13 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: cd84bfb8142bc7ff3a07a188ffb809f1d86d1fd7
      https://github.com/llvm/llvm-project/commit/cd84bfb8142bc7ff3a07a188ffb809f1d86d1fd7
  Author: Saleem Abdulrasool <compnerd at compnerd.org>
  Date:   2020-04-28 (Tue, 28 Apr 2020)

  Changed paths:
    M clang-tools-extra/test/lit.site.cfg.py.in
    M clang/CMakeLists.txt
    M clang/bindings/python/tests/CMakeLists.txt
    M clang/test/lit.site.cfg.py.in
    M clang/utils/perf-training/CMakeLists.txt
    M clang/utils/perf-training/lit.site.cfg.in
    M clang/utils/perf-training/order-files.lit.site.cfg.in
    M llvm/CMakeLists.txt
    M llvm/cmake/config-ix.cmake
    M llvm/cmake/modules/AddLLVM.cmake
    M llvm/test/lit.site.cfg.py.in
    M llvm/tools/llvm-shlib/CMakeLists.txt

  Log Message:
  -----------
  build: use `find_package(Python3)` if available

This is primarily motivated by the desire to move from Python2 to
Python3.  `PYTHON_EXECUTABLE` is ambiguous.  This explicitly identifies
the python interpreter in use.  Since the LLVM build seems to be able to
completed successfully with python3, use that across the build.  The old
path aliases `PYTHON_EXECUTABLE` to be treated as Python3.




More information about the All-commits mailing list