Skip to content

pcre2test: detect setrlimit instead of hardcoding platform list#893

Open
puffnfresh wants to merge 1 commit intoPCRE2Project:mainfrom
puffnfresh:wasi-support
Open

pcre2test: detect setrlimit instead of hardcoding platform list#893
puffnfresh wants to merge 1 commit intoPCRE2Project:mainfrom
puffnfresh:wasi-support

Conversation

@puffnfresh
Copy link

Replace the growing platform preprocessor check for -S flag support with AC_CHECK_FUNCS/check_symbol_exists detection of setrlimit. This automatically handles any platform lacking setrlimit (WASI, VMS, etc.) without maintaining a manual list.

Haiku and z/OS are kept as explicit exclusions because they provide setrlimit but don't support RLIMIT_STACK.

Replace the growing platform preprocessor check for -S flag support
with AC_CHECK_FUNCS/check_symbol_exists detection of setrlimit. This
automatically handles any platform lacking setrlimit (WASI, VMS, etc.)
without maintaining a manual list.

Haiku and z/OS are kept as explicit exclusions because they provide
setrlimit but don't support RLIMIT_STACK.
@NWilson
Copy link
Member

NWilson commented Mar 11, 2026

Thank you, there are several of these in pcre2test and pcre2grep which I would love to clear up. Much appreciated! I will have to do a little bit of platform checking testing before I merge, but in principle, this is good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants