[all-commits] [llvm/llvm-project] 0ff3cc: [gn build] Change python run lines to python3

Nico Weber via All-commits all-commits at lists.llvm.org
Wed Mar 23 13:42:39 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0ff3cc2087b9aa74f6ad7a744bf3f62e4d3ec9d6
      https://github.com/llvm/llvm-project/commit/0ff3cc2087b9aa74f6ad7a744bf3f62e4d3ec9d6
  Author: Nico Weber <thakis at chromium.org>
  Date:   2022-03-23 (Wed, 23 Mar 2022)

  Changed paths:
    M llvm/utils/gn/build/run_tablegen.py
    M llvm/utils/gn/build/symbol_exports.py
    M llvm/utils/gn/build/symlink_or_copy.py
    M llvm/utils/gn/build/sync_source_lists_from_cmake.py
    M llvm/utils/gn/build/write_cmake_config.py
    M llvm/utils/gn/build/write_library_dependencies.py
    M llvm/utils/gn/build/write_vcsrevision.py
    M llvm/utils/gn/get.py
    M llvm/utils/gn/gn.py
    M llvm/utils/gn/secondary/libcxx/utils/gen_link_script.py
    M llvm/utils/gn/secondary/llvm/include/llvm/Support/write_extension_def.py
    M llvm/utils/gn/secondary/llvm/tools/llvm-config/write_extension_dependencies.py

  Log Message:
  -----------
  [gn build] Change python run lines to python3

macOS 12.3 no longer ships non-3 python.

Almost all of these scripts were launched by ninja, and the GN files
already told it to run them under python3, so this is a fairly small
change.  The main effect is that if you run them manually, you now
get the same behavior.

(A small set of scripts, gn.py, gen.py, sync_source_lists_from_cmake.py,
are for manual running.  For these, it is an actual change.)

Differential Revision: https://reviews.llvm.org/D122345




More information about the All-commits mailing list