[llvm] [llvm-locstats] Switch shebang from python to python3 (PR #101864)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 3 20:58:00 PDT 2024
https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/101864
Some system only provide python3 and do not alias python to python3 by default. This means that directly executing llvm-locstats.py does not work as the system cannot find the interpreter. This should be safe to bump now that the project-wide minimum Python version for LLVM is v3.8.
>From e87c47f7d7add1ddf1211c10be661617e8b49761 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Sun, 4 Aug 2024 03:55:57 +0000
Subject: [PATCH] [llvm-locstats] Switch shebang from python to python3
Some system only provide python3 and do not alias python to python3 by
default. This means that directly executing llvm-locstats.py does not
work as the system cannot find the interpreter. This should be safe to
bump now that the project-wide minimum Python version for LLVM is v3.8.
---
llvm/utils/llvm-locstats/llvm-locstats.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/utils/llvm-locstats/llvm-locstats.py b/llvm/utils/llvm-locstats/llvm-locstats.py
index 454488064106e..405222e580844 100755
--- a/llvm/utils/llvm-locstats/llvm-locstats.py
+++ b/llvm/utils/llvm-locstats/llvm-locstats.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# This is a tool that works like debug location coverage calculator.
# It parses the llvm-dwarfdump --statistics output by reporting it
More information about the llvm-commits
mailing list