[compiler-rt] compiler-rt: Make the tests pass on AArch64 and with page size != 4096. (PR #153860)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 15 12:47:25 PDT 2025


================
@@ -965,6 +965,16 @@ def is_windows_lto_supported():
 else:
     config.available_features.add("memprof-shadow-scale-3")
 
+def target_page_size():
+    try:
+        proc = subprocess.Popen(f"{emulator or ""} python3", shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
----------------
fmayer wrote:

Do we really need `shell`? And, can we use `check_output` instead?

```
return int(subprocess.check_output(([emulator] if emulator else []) + ['python3', '-c', 'import os; print(os.sysconf("SC_PAGESIZE"))']))
```

https://github.com/llvm/llvm-project/pull/153860


More information about the llvm-commits mailing list