[compiler-rt] 015e3d2 - [compiler-rt] Unify python shebangs (#187285)

via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 18 17:48:12 PDT 2026


Author: Ross Burton
Date: 2026-03-18T17:48:08-07:00
New Revision: 015e3d2b20924e966345d3c493fb16f2fa3160b4

URL: https://github.com/llvm/llvm-project/commit/015e3d2b20924e966345d3c493fb16f2fa3160b4
DIFF: https://github.com/llvm/llvm-project/commit/015e3d2b20924e966345d3c493fb16f2fa3160b4.diff

LOG: [compiler-rt] Unify python shebangs (#187285)

As per PEP-0394[1], there is no real concensus over what binary names
Python has, specifically 'python' could be Python 3, Python 2, or not
exist.

However, everyone has a python3 interpreter and the scripts are all
written for Python 3. Unify the shebangs so that the ~50% of shebangs
that use python now use python3.

[1] https://peps.python.org/pep-0394/

Added: 
    

Modified: 
    compiler-rt/lib/asan/scripts/asan_symbolize.py
    compiler-rt/lib/fuzzer/scripts/unbalanced_allocs.py
    compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py
    compiler-rt/lib/sanitizer_common/scripts/sancov.py

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/asan/scripts/asan_symbolize.py b/compiler-rt/lib/asan/scripts/asan_symbolize.py
index dffe4dd6fc032..f645b0a8d7ceb 100755
--- a/compiler-rt/lib/asan/scripts/asan_symbolize.py
+++ b/compiler-rt/lib/asan/scripts/asan_symbolize.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # ===- lib/asan/scripts/asan_symbolize.py -----------------------------------===#
 #
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

diff  --git a/compiler-rt/lib/fuzzer/scripts/unbalanced_allocs.py b/compiler-rt/lib/fuzzer/scripts/unbalanced_allocs.py
index 7ba7e09cb4e50..c8c19a017eb3f 100755
--- a/compiler-rt/lib/fuzzer/scripts/unbalanced_allocs.py
+++ b/compiler-rt/lib/fuzzer/scripts/unbalanced_allocs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # ===- lib/fuzzer/scripts/unbalanced_allocs.py ------------------------------===#
 #
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

diff  --git a/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py b/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py
index fdbceae165e0d..e4b33e6637b0e 100755
--- a/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py
+++ b/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # ===- lib/sanitizer_common/scripts/gen_dynamic_list.py ---------------------===#
 #
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

diff  --git a/compiler-rt/lib/sanitizer_common/scripts/sancov.py b/compiler-rt/lib/sanitizer_common/scripts/sancov.py
index 31055086350ab..06906aabf18e8 100755
--- a/compiler-rt/lib/sanitizer_common/scripts/sancov.py
+++ b/compiler-rt/lib/sanitizer_common/scripts/sancov.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # Merge or print the coverage data collected by asan's coverage.
 # Input files are sequences of 4-byte integers.
 # We need to merge these integers into a set and then


        


More information about the llvm-commits mailing list