[all-commits] [llvm/llvm-project] 71e803: Update shebang for clang-format-diff script to pyt...

Paula Toth via All-commits all-commits at lists.llvm.org
Thu Apr 22 06:48:27 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 71e80386d0fe7f7a2f997271ce5d492d5e8686c2
      https://github.com/llvm/llvm-project/commit/71e80386d0fe7f7a2f997271ce5d492d5e8686c2
  Author: Paula Toth <paulatoth at google.com>
  Date:   2021-04-22 (Thu, 22 Apr 2021)

  Changed paths:
    M clang/tools/clang-format/clang-format-diff.py

  Log Message:
  -----------
  Update shebang for clang-format-diff script to python3.

Different distributions have different strategies migrating the `python` symlink. Debian and its derivatives provide `python-is-python2` and `python-is-python3`. If neither is installed, the user gets no `/usr/bin/python`. The clang-format-diff script and consequently `arc diff` can thus fail with a python not found error.  Since we require python greater than 3.6 as part of llvm prerequisites (https://llvm.org/docs/GettingStarted.html#software), let's go ahead and update this shebang.

Reviewed By: MaskRay

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




More information about the All-commits mailing list