[compiler-rt] compiler-rt: Use configured Python for lit page-size probe (PR #209175)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 13 06:24:13 PDT 2026


https://github.com/maflcko created https://github.com/llvm/llvm-project/pull/209175

Use the same Python executable configured for the test suite, rather than relying on python3 being on PATH.

>From 59157c058359afb091696267841d903f645a67e1 Mon Sep 17 00:00:00 2001
From: MarcoFalke <*~=`'#}+{/-|&$^_ at 721217.xyz>
Date: Mon, 13 Jul 2026 15:22:01 +0200
Subject: [PATCH] compiler-rt: Use configured Python for lit page-size probe

Use the same Python executable configured for the test suite, rather
than relying on python3 being on PATH.
---
 compiler-rt/test/lit.common.cfg.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler-rt/test/lit.common.cfg.py b/compiler-rt/test/lit.common.cfg.py
index 27feda69dc1d9..c19f4d18b7e0d 100644
--- a/compiler-rt/test/lit.common.cfg.py
+++ b/compiler-rt/test/lit.common.cfg.py
@@ -978,7 +978,7 @@ def target_page_size():
         return 4096
     try:
         proc = subprocess.Popen(
-            f"{emulator or ''} python3",
+            f"{emulator or ''} {shlex.quote(config.python_executable)}",
             shell=True,
             stdin=subprocess.PIPE,
             stdout=subprocess.PIPE,



More information about the llvm-commits mailing list