[PATCH] D100968: Update shebang for clang-format-diff script to python3.
Paula Toth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 21 09:41:04 PDT 2021
PaulkaToast created this revision.
PaulkaToast added reviewers: MaskRay, DavidSpickett.
PaulkaToast requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
On newer Linux distributions that don't have python2, the clang-format-diff script and consequently `arc diff` is failing with 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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D100968
Files:
clang/tools/clang-format/clang-format-diff.py
Index: clang/tools/clang-format/clang-format-diff.py
===================================================================
--- clang/tools/clang-format/clang-format-diff.py
+++ clang/tools/clang-format/clang-format-diff.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
#===- clang-format-diff.py - ClangFormat Diff Reformatter ----*- python -*--===#
#
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100968.339271.patch
Type: text/x-patch
Size: 372 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210421/06ef1496/attachment.bin>
More information about the cfe-commits
mailing list