Files
cpython/Python
Miss Islington (bot)andノウラ | Flare 373bc1abdf [3.14] gh-157549: Use sysconf() for the page size in remote_debug.h (GH-157800) (#157814)
gh-157549: Use sysconf() for the page size in remote_debug.h (GH-157800)

getpagesize() is not an ISO C or POSIX function. Darwin hides the prototype under -std=c11, so the _remote_debugging build fails with -Werror=implicit-function-declaration. That is the failure in the reported x86_64-apple-darwin → arm64-apple-darwin cross build.

Call sysconf(_SC_PAGESIZE) instead, which is already how resource.getpagesize() works. Fall back to 4096 if sysconf() fails.

--without-remote-debug is unchanged. That flag only disables the target-side attach protocol (Py_REMOTE_DEBUG); it does not exclude the _remote_debugging client module.
(cherry picked from commit 9193375382)

Co-authored-by: ノウラ | Flare <nouraellm@gmail.com>
2026-09-19 16:45:19 +00:00
..
…

Miscellaneous source files for the main Python shared library