Skip to content

Commit 8d6ece2

Browse files
committed
Format
Created using spr 1.3.6-beta.1
1 parent 1fdd314 commit 8d6ece2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

compiler-rt/test/lit.common.cfg.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,14 +965,21 @@ def is_windows_lto_supported():
965965
else:
966966
config.available_features.add("memprof-shadow-scale-3")
967967

968+
968969
def target_page_size():
969970
try:
970-
proc = subprocess.Popen(f"{emulator or ""} python3", shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
971+
proc = subprocess.Popen(
972+
f"{emulator or ""} python3",
973+
shell=True,
974+
stdin=subprocess.PIPE,
975+
stdout=subprocess.PIPE,
976+
)
971977
out, err = proc.communicate(b'import os; print(os.sysconf("SC_PAGESIZE"))')
972978
return int(out)
973979
except:
974980
return 4096
975981

982+
976983
config.available_features.add(f"page-size-{target_page_size()}")
977984

978985
if config.expensive_checks:

0 commit comments

Comments
 (0)