Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion compiler-rt/test/lit.common.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,9 @@ def target_page_size():
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
)
out, err = proc.communicate(b'import os; print(os.sysconf("SC_PAGESIZE"))')
out, err = proc.communicate(
b'import os; print(os.sysconf("SC_PAGESIZE") if hasattr(os, "sysconf") else "")'
)
return int(out)
except:
return 4096
Expand Down