-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add patch to set PCRE2 stack size dynamically, since 16MB isn't enoug…
…h on OSX apparently
- Loading branch information
1 parent
b3a7342
commit 31cde5b
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
290c290,297 | ||
< test2stack="-S 16" | ||
--- | ||
> # Attempt to auto-detect the maximum stack size: | ||
> MAX_STACK=$(( $(ulimit -H -s)/1024 )) | ||
> | ||
> # if that fails, default to 16MB | ||
> if [ "$MAX_STACK" -eq 0 ]; then | ||
> MAX_STACK=16 | ||
> fi | ||
> test2stack="-S $MAX_STACK" |